Bug #10501 Updated: array_sumn causes segfault when used with unset vars
| From: | bbonev@php.net | Date: | Thu, 26 Apr 2001 00:58:04 +0000 |
| Subject: | Bug #10501 Updated: array_sumn causes segfault when used with unset vars | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-52455@lists.php.net to get a copy of this message | ||
ID: 10501
Updated by: bbonev
Reported By: lee@mediawaveonline.com
Old-Status: Open
Status: Closed
Bug Type: Unknown/Other Function
PHP Version: 4.0.4pl1
Assigned To:
Comments:
this is fixed in CVS, wait for 4.0.5
$ ./php
<?php
$result = array_sum($test);
?>
X-Powered-By: PHP/4.0.5RC6
Content-type: text/html
<br>
<b>Warning</b>: The argument to array_sum() should be an array in <b>-</b>
on line <b>3</b><br>
Previous Comments:
---------------------------------------------------------------------------
[2001-04-25 20:12:39] lee@mediawaveonline.com
<?php
$result = array_sum($test);
?>
causes a seg fault because $test is not set. no error is given in the log files or on screen. only
apache's error_log shows a segfault.
Chris Lee
lee@mediawaveonline.com
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10501&edit=2