#31360 [NEW]: Maybe Array operation has some bug
| From: | tokimeki at 1111 dot com dot tw | Date: | Fri, 31 Dec 2004 01:40:11 +0000 |
| Subject: | #31360 [NEW]: Maybe Array operation has some bug | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-71330@lists.php.net to get a copy of this message | ||
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])
<>[]!@#$%^&*()_+|~`\:;,.? (array) = {
TEST (string) = <>[]!@#$%^&*()_+|~`\:;,.?
}
(array) -> (@[test][<>[]!@#$%^&*()_+|~`\:;,.?])
}
}
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