Bug #14738 Updated: array_pad dies with large pad length

From: Date: Wed, 27 Feb 2002 06:06:09 +0000
Subject: Bug #14738 Updated: array_pad dies with large pad length
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-1162@lists.php.net to get a copy of this message
ID: 14738 Updated by: yohgaki@php.net Reported By: brianm@dealnews.com -Status: Open +Status: Analyzed Bug Type: Arrays related Operating System: Linux -PHP Version: 4.0.6 +PHP Version: 4.2.0-dev New Comment: With "80000" or "65536", I get the output. Script: '-' --------------------------------------- zend_execute.h(62) : Block 0x082FC410 status: Beginning: Cached (allocated on ./zend_execute.c:1596, 12 bytes) End: OK --------------------------------------- Previous Comments: ------------------------------------------------------------------------ [2002-02-26 23:16:08] brianm@dealnews.com Sorry, that should have been anything larger than 65535 will cause this. Try like 80000. ------------------------------------------------------------------------ [2002-02-26 21:49:05] yohgaki@php.net Try snapshot. http://snaps.php.net/ I don't see the error. If you have problem, please reopen. ------------------------------------------------------------------------ [2001-12-28 11:13:39] brianm@dealnews.com This code: $arr=array(); $arr=array_pad($arr, 65535, md5(microtime())); causes this output: [Fri Dec 28 10:01:38 2001] Script: './test.php' --------------------------------------- zend_execute.h(62) : Block 0x081BD070 status: Beginning: Cached (allocated on ./zend_execute.c:1502, 12 bytes) End: OK --------------------------------------- backing that down to 65534 will cause no error. Looks like that parameter is set to only allow 32 bit integers. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=14738&edit=1

« previous php.bugs (#1162) next »