Bug #14738 Updated: array_pad dies with large pad length

From: Date: Tue, 18 Jun 2002 10:39:14 +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-11115@lists.php.net to get a copy of this message
ID: 14738 Updated by: derick@php.net Reported By: brianm@dealnews.com -Status: Analyzed +Status: Open -Bug Type: Arrays related +Bug Type: Scripting Engine problem Operating System: Linux PHP Version: 4.2.0-dev Previous Comments: ------------------------------------------------------------------------ [2002-02-27 01:06:08] yohgaki@php.net 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 --------------------------------------- ------------------------------------------------------------------------ [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 (#11115) next »