#29044 [NEW]: compact function doesn't take account of infinitly recursive arrays
| From: | tomas_matousek at hotmail dot com | Date: | Wed, 07 Jul 2004 08:39:38 +0000 |
| Subject: | #29044 [NEW]: compact function doesn't take account of infinitly recursive arrays | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-61838@lists.php.net to get a copy of this message | ||
From: tomas_matousek at hotmail dot com
Operating system: WinXP
PHP version: 5.0.0RC3
PHP Bug Type: Reproducible crash
Bug description: compact function doesn't take account of infinitly recursive arrays
Description:
------------
The compact() function crashes (terminates PHP process) if an array with
infinite recursion is passed to it.
Reproduce code:
---------------
$a = array(&$a);
compact($a);
Expected result:
----------------
none
Actual result:
--------------
crash
--
Edit bug report at http://bugs.php.net/?id=29044&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29044&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29044&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=29044&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=29044&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29044&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=29044&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=29044&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29044&r=support
Expected behavior: http://bugs.php.net/fix.php?id=29044&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29044&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29044&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=29044&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29044&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=29044&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=29044&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29044&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29044&r=float