|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2008-04-14 15:47 UTC] antphill at uk dot ibm dot com
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 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 21:00:02 2025 UTC |
This weirdness also seems to affect session_cache_expire(): --TEST-- Test session_cache_expire() function : variation --SKIPIF-- <?php include('skipif.inc'); ?> --FILE-- <?php ob_start(); /* * Prototype : int session_cache_expire([int $new_cache_expire]) * Description : Return current cache expire * Source code : ext/session/session.c */ echo "*** Testing session_cache_expire() : variation ***\n"; ini_set("session.cache_expire", 360); var_dump(session_cache_expire()); var_dump(session_cache_expire(999)); var_dump(session_cache_expire(180)); var_dump(session_start()); var_dump(session_cache_expire()); var_dump(session_destroy()); var_dump(session_cache_expire()); echo "Done"; ob_end_flush(); ?> --EXPECTF-- *** Testing session_cache_expire() : variation *** int(360) int(0) int(999) bool(true) int(180) bool(true) int(0) Done