????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 18.222.57.238 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/home/b8009/php-5.6.22/ext/standard/tests/array/ |
Upload File : |
--TEST-- Bug #36975 (natcasesort() causes array_pop() to misbehave) --FILE-- <?php $a = array('aa', 'aa', 'bb', 'bb', 'cc', 'cc'); $test = natcasesort($a); if ($test) { echo "natcasesort success!\n"; } $val = array_pop($a); $a[] = $val; var_dump($a); $b = array(1 => 'foo', 0 => 'baz'); array_pop($b); $b[] = 'bar'; array_push($b, 'bar'); print_r($b); $c = array(0, 0, 0, 0, 0); asort($c); array_pop($c); $c[] = 'foo'; $c[] = 'bar'; var_dump($c); ?> --EXPECT-- natcasesort success! array(6) { [0]=> string(2) "aa" [1]=> string(2) "aa" [3]=> string(2) "bb" [2]=> string(2) "bb" [5]=> string(2) "cc" [6]=> string(2) "cc" } Array ( [1] => foo [2] => bar [3] => bar ) array(6) { [4]=> int(0) [3]=> int(0) [2]=> int(0) [1]=> int(0) [5]=> string(3) "foo" [6]=> string(3) "bar" }