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 [NEW]: Using PHP while using list() function
by Fernando Dot Nemec At Gmail Dot Com other posts by this author
Nov 6 2009 4:20PM messages near this date
#50109 [Opn->Bgs]: Low memory after installing mysql mod php5 | #50108 [Fbk->Bgs]: PHP crashs while using list() function
From:             fernando dot nemec at gmail dot com
Operating system: Fedora Core 5
PHP version:      5.2.11
PHP Bug Type:     Reproducible crash
Bug description:  Using PHP while using list() function

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 bug report at http://bugs.php.net/?id=50108&edit=1
-- 
Try a snapshot (PHP 5.2):            http://bugs.php.net/fix.php?id=50108&r=trysnapshot52
Try a snapshot (PHP 5.3):            http://bugs.php.net/fix.php?id=50108&r=trysnapshot53
Try a snapshot (PHP 6.0):            http://bugs.php.net/fix.php?id=50108&r=trysnapshot60
Fixed in SVN:                        http://bugs.php.net/fix.php?id=50108&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50108&r=needdocs
Fixed in release:                    http://bugs.php.net/fix.php?id=50108&r=alreadyfixed
Need backtrace:                      http://bugs.php.net/fix.php?id=50108&r=needtrace
Need Reproduce Script:               http://bugs.php.net/fix.php?id=50108&r=needscript
Try newer version:                   http://bugs.php.net/fix.php?id=50108&r=oldversion
Not developer issue:                 http://bugs.php.net/fix.php?id=50108&r=support
Expected behavior:                   http://bugs.php.net/fix.php?id=50108&r=notwrong
Not enough info:                     http://bugs.php.net/fix.php?id=50108&r=notenoughinfo
Submitted twice:                     http://bugs.php.net/fix.php?id=50108&r=submittedtwice
register_globals:                    http://bugs.php.net/fix.php?id=50108&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=50108&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=50108&r=dst
IIS Stability:                       http://bugs.php.net/fix.php?id=50108&r=isapi
Install GNU Sed:                     http://bugs.php.net/fix.php?id=50108&r=gnused
Floating point limitations:          http://bugs.php.net/fix.php?id=50108&r=float
No Zend Extensions:                  http://bugs.php.net/fix.php?id=50108&r=nozend
MySQL Configuration Error:           http://bugs.php.net/fix.php?id=50108&r=mysqlcfg
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