From: shany at zend dot com
Operating system: PPC Darwin 8.9.0
PHP version: 5.2.4
PHP Bug Type: Date/time related
Bug description: PHP fatal error in date function
Description:
------------
When running the script below I received error message:
PHP Fatal error: Balloc() allocation exceeds list boundary in
/usr/local/Zend/apache2/htdocs/date_test.php on line 2
This error was reproduced using php-cgi and php-cli scripts.
The error was not reproduced on iMac with Darwin 8.10.1, or on Linux
RHEL5, Windows (XP, VISTA 64bit and Server03).
I'm using ZendCore 2.5.0 with bundled appache (2.2.4)
Build configuration: ./configure' '--prefix=/usr/local/Zend/Core'
'--with-config-file-path=/etc' '--enable-force-cgi-redirect'
'--enable-fastcgi' '--disable-debug' '--enable-inline-optimization'
'--enable-memory-limit' '--disable-all' '--enable-ctype' '--enable-dom'
'--enable-libxml' '--with-libxml-dir=/usr/local/Zend/Core'
'--with-openssl=/usr/local/Zend/Core' '--with-pcre-regex'
'--enable-session' '--enable-simplexml' '--enable-spl' '--enable-wddx'
'--enable-xml' '--enable-hash' '--enable-reflection'
'--with-zlib=/usr/local/Zend/Core' '--with-pear'
'--with-apxs2=/usr/local/Zend/apache2/bin/apxs' '--with-layout=GNU'
'--enable-json' '--enable-filter' '--enable-pdo'
Changes in php.ini:
short_open_tag = On
max_execution_time = 3000
max_input_time = 600
register_argc_argv = On
<auto_globals_jit = On> (missing)
<allow_url_include = Off> (missing)
<session.cookie_httponly = >(missing)
ingres.allow_persistent = On
ingres.max_persistent = -1
ingres.max_links = -1
pfpro.defaulthost = "test-payflow.verisign.com"
pfpro.defaultport = 443
pfpro.defaulttimeout = 30
sockets.use_system_read = On
extension_dir="/usr/local/Zend/Core/lib/php/20060613"
include_path=".:/usr/local/Zend/Core/share/pear"
Reproduce code:
---------------
Script sample:
<?php
$d = date("l");
echo "d is: $d\n";
?>
(I also tried other possible strings as date() input)
Expected result:
----------------
d is: Monday
Actual result:
--------------
PHP Fatal error: Balloc() allocation exceeds list boundary in
/usr/local/Zend/apache2/htdocs/date_test.php on line 2
--
Edit bug report at http://bugs.php.net/?id=42975&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=42975&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=42975&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=42975&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42975&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=42975&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=42975&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=42975&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=42975&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=42975&r=support
Expected behavior: http://bugs.php.net/fix.php?id=42975&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=42975&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=42975&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42975&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42975&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42975&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=42975&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=42975&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=42975&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=42975&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=42975&r=mysqlcfg