ID:               44719
 User updated by:  antphill at uk dot ibm dot com
 Reported By:      antphill at uk dot ibm dot com
 Status:           Open
 Bug Type:         Session related
 Operating System: SUSE Linux
 PHP Version:      6CVS-2008-04-14 (snap)
 New Comment:

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


Previous Comments:
------------------------------------------------------------------------

[2008-04-14 15:47:49] 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:
--------------
[EMAIL PROTECTED]:~/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 this bug report at http://bugs.php.net/?id=44719&edit=1

Reply via email to