From:             tokimeki at 1111 dot com dot tw
Operating system: FreeBSD / Windows XP
PHP version:      5.0.3
PHP Bug Type:     Arrays related
Bug description:  Maybe Array operation has some bug

Description:
------------
look the two source, index.php and debug.php.
At index.php (line 29), after array copy, and call show_var to show $arr
or $test, I get a error.


Reproduce code:
---------------
http://timteam.org/?TIM=FORUM&FORUM=1&ShowDocument=12961#TIM12961

Expected result:
----------------
ok
(array) = {
        obj (object) = {}
        str (string) = str
        arr (array) = {}
        number (integer) = 100
        bool (boolean) = 1
        null (NULL) = 
        test (array) = {
                AAA (string) = 000
                BBB (array) = {
                        zzz (string) = Z
                        xxx (array) = {
                                zzz (string) = Z
                                xxx (array) -> (@[test][BBB][xxx])
                        }
                        yyy (array) = {
                                www (array) -> (@[test][BBB])
                                vvv (array) -> (@[test][BBB])
                        }
                }
                CCC (array) -> (@)
                DDD (string) = ABC
                EEE (array) -> (@[test][BBB][yyy])
                FFF (array) -> (@[test][BBB])
                <>[EMAIL PROTECTED]&*()_+|~`\:;,.? (array) = {
                        TEST (string) = <>[EMAIL PROTECTED]&*()_+|~`\:;,.?
                }
                  (array) -> (@[test][<>[EMAIL PROTECTED]&*()_+|~`\:;,.?])
        }
}



Actual result:
--------------
ok
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
allocate 128 bytes) in /home/tokimeki/public_html/test/debug.php on line
29

-- 
Edit bug report at http://bugs.php.net/?id=31360&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=31360&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=31360&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=31360&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=31360&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=31360&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=31360&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=31360&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=31360&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=31360&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=31360&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=31360&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=31360&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=31360&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=31360&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=31360&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=31360&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=31360&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=31360&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=31360&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=31360&r=mysqlcfg

Reply via email to