ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-dev
php-dev
#50108 [Opn->Fbk]: PHP crashs while using list() function
by felipe other posts by this author
Nov 7 2009 1:21PM messages near this date
#50108 [Com]: PHP crashs while using list() function | #50108 [Opn]: PHP crashs while using list() function
ID:               50108
 Updated by:       felipe@[...].net
 Reported By:      fernando dot nemec at gmail dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Reproducible crash
 Operating System: Fedora Core 5
 PHP Version:      5.2.11
 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------

[2009-11-07 00:23:32] fernando dot nemec at gmail dot com

Just fixing the summary.

------------------------------------------------------------------------

[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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved