#50108 [Opn]: PHP crashs while using list() function
by Fernando Dot Nemec At Gmail Dot Com other posts by this author
Nov 6 2009 4:23PM messages near this date
#50108 [Opn->Fbk]: PHP crashs while using list() function
|
#50106 [NEW]: htmlspecialchars is inconsistent with the specification
ID: 50108
User updated by: fernando dot nemec at gmail dot com
-Summary: Using PHP while using list() function
Reported By: fernando dot nemec at gmail dot com
Status: Open
Bug Type: Reproducible crash
Operating System: Fedora Core 5
PHP Version: 5.2.11
New Comment:
Just fixing the summary.
Previous Comments:
------------------------------------------------------------------------
[2009-11-07 00:20:35] fernando dot nemec at gmail dot com
Description:
------------
PHP crashs on incorrectly use of list() function. If list has more
arguments than the input array has elements, then PHP crashs and prints
the message "File size limit exceeded".
Reproduce code:
---------------
<?
# this code was test only in command line
# the interpreter never reach line 7
$foobar = Array( "1");
list( $foo , $bar ) = array_values( $foobar ) ;
print "foobar\n" ;
?>
Expected result:
----------------
"foobar"
Actual result:
--------------
File size limit exceeded
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=50108&edit=1
Thread:
Fernando Dot Nemec At Gmail Dot Com
fa
Fernando Dot Nemec At Gmail Dot Com
felipe
Fernando Dot Nemec At Gmail Dot Com
|