Bug #10448: PHP core dumps after array_init
| From: | bfoddy at mn dot mediaone dot net | Date: | Mon, 23 Apr 2001 03:46:34 +0000 |
| Subject: | Bug #10448: PHP core dumps after array_init | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-52168@lists.php.net to get a copy of this message | ||
From: bfoddy@mn.mediaone.net
Operating system: Linux and Solaris
PHP version: 4.0.4pl1
PHP Bug Type: Reproduceable crash
Bug description: PHP core dumps after array_init
I've found that any PHP function can cause a core dump (Seg Fault) if it performs an array_init
(return_value) function, and then subsequently returns with RETURN_FALSE or RETURN_TRUE without
adding any values to the array. Perhaps occurs under other conditions also.
This can easily occur in code if after the array_init call
the program encounters a to which it wants to return ERROR
for.
Have I violated any Zend don't-do's by this?
--
Edit Bug report at: http://bugs.php.net/?id=10448&edit=1