#44719 [NEW]: session_cache_expire() fails to allocate large amount of memory
| From: | antphill at uk dot ibm dot com | Date: | Mon, 14 Apr 2008 15:47:49 +0000 |
| Subject: | #44719 [NEW]: session_cache_expire() fails to allocate large amount of memory | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-124216@lists.php.net to get a copy of this message | ||
From: antphill at uk dot ibm dot com
Operating system: SUSE Linux
PHP version: 6CVS-2008-04-14 (snap)
PHP Bug Type: Session related
Bug description: session_cache_expire() fails to allocate large amount of memory
Description:
------------
When I call session_cache_expire() on Linux to get the current cache time
(but not set it) I get this weird error message saying that a large amount
of memory is being allocated. This does not reproduce on Windows but also
appears on a separate Linux build server we have.
This scenario occurs with both unicode enabled and disabled.
=====================================================================
PHP : /home/ant/php/php6.0/install/bin/php
PHP_SAPI : cli
PHP_VERSION : 6.0.0-dev
ZEND_VERSION: 3.0.0-dev
PHP_OS : Linux - Linux linux 2.6.16.21-0.8-default #1 Mon Jul 3
18:25:39 UTC 2006 i686
UNICODE : OFF
INI actual : /home/ant/php/php6.0/install/bin
More .INIs :
CWD : /home/ant/php/php6.0/install/bin
Extra dirs :
VALGRIND : Not used
=====================================================================
R
Reproduce code:
---------------
<?php
var_dump(session_cache_expire());
?>
Expected result:
----------------
int(180)
Actual result:
--------------
ant@linux:~/php/php6.0/install/bin> ./php
/mnt/hgfs/Projects/Session/php-6.0/Test.php
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to
allocate 3067441245 bytes) in /mnt/hgfs/Projects/Session/php-6.0/Test.php
on line 3
--
Edit bug report at http://bugs.php.net/?id=44719&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44719&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44719&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44719&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=44719&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=44719&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=44719&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=44719&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=44719&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=44719&r=support
Expected behavior: http://bugs.php.net/fix.php?id=44719&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=44719&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=44719&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=44719&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44719&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=44719&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=44719&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=44719&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=44719&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=44719&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=44719&r=mysqlcfg