mirror of
https://github.com/php/php-src.git
synced 2024-09-28 21:36:12 +00:00
e196cfe7db
array_unique() is not expected to modify its argument
16 lines
197 B
PHP
16 lines
197 B
PHP
--TEST--
|
|
unset() CV 8 (unset() of global variable in array_unique($GLOBALS))
|
|
--FILE--
|
|
<?php
|
|
$a = "ok\n";
|
|
$b = "ok\n";
|
|
array_unique($GLOBALS);
|
|
echo $a;
|
|
echo $b;
|
|
echo "ok\n";
|
|
?>
|
|
--EXPECTF--
|
|
ok
|
|
ok
|
|
ok
|