????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 216.73.216.116 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/pcre/tests/ |
Upload File : |
--TEST-- Bug #44925 (preg_grep() modifies input array) --FILE-- <?php $str1 = 'a'; $str2 = 'b'; $array=Array("1",2,3,1.1,FALSE,NULL,Array(), $str1, &$str2); var_dump($array); var_dump(preg_grep('/do not match/',$array)); $a = preg_grep('/./',$array); var_dump($a); $str1 = 'x'; $str2 = 'y'; var_dump($a); // check if array is still ok var_dump($array); ?> --EXPECTF-- array(9) { [0]=> string(1) "1" [1]=> int(2) [2]=> int(3) [3]=> float(1.1) [4]=> bool(false) [5]=> NULL [6]=> array(0) { } [7]=> string(1) "a" [8]=> &string(1) "b" } Notice: Array to string conversion in %sbug44925.php on line 9 array(0) { } Notice: Array to string conversion in %sbug44925.php on line 11 array(7) { [0]=> string(1) "1" [1]=> int(2) [2]=> int(3) [3]=> float(1.1) [6]=> array(0) { } [7]=> string(1) "a" [8]=> &string(1) "b" } array(7) { [0]=> string(1) "1" [1]=> int(2) [2]=> int(3) [3]=> float(1.1) [6]=> array(0) { } [7]=> string(1) "a" [8]=> &string(1) "y" } array(9) { [0]=> string(1) "1" [1]=> int(2) [2]=> int(3) [3]=> float(1.1) [4]=> bool(false) [5]=> NULL [6]=> array(0) { } [7]=> string(1) "a" [8]=> &string(1) "y" }