php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50108 PHP crashs while using list() function
Submitted: 2009-11-07 00:20 UTC Modified: 2009-11-11 00:26 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: fernando dot nemec at gmail dot com Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 5.2.11 OS: Fedora Core 5
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: fernando dot nemec at gmail dot com
New email:
PHP Version: OS:

 

 [2009-11-07 00:20 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-07 00:23 UTC] fernando dot nemec at gmail dot com
Just fixing the summary.
 [2009-11-07 21:20 UTC] felipe@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

I can't reproduce it.
 [2009-11-09 14:43 UTC] fernando dot nemec at gmail dot com
Sorry! my mistake.
 [2009-11-11 00:26 UTC] fa@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 12:01:29 2024 UTC