ID:               21306
 Updated by:       [EMAIL PROTECTED]
 Reported By:      Xuefer at 21cn dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Session related
 Operating System: linux
 PHP Version:      5CVS, 4CVS (2005-09-16)
 Assigned To:      sas
 New Comment:

How common is it to run a PHP script like that?
In a normal usage, I still can not reproduce this.
Please explain how this is reproducable?



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

[2005-09-19 12:56:01] Xuefer at 21cn dot com

verified with php6
Zend/zend_API.c

#if 1 <- enable it
        zend_printf("%s:  Request shutdown\n", module->name);
#endif

#### ./sapi/cgi/php ./test.php

Content-type: text/html
Set-Cookie: SID=15db16deadc51c47e8878eaec63d5b71; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
Pragma: no-cache

libxml:  Request shutdown
xcache:  Request shutdown
tokenizer:  Request shutdown
standard:  Request shutdown
SPL:  Request shutdown
PDO:  Request shutdown
session:  Request shutdown

Warning: Unknown: A session is active. You cannot change the session
module's ini settings at this time. in Unknown on line 0
Unknown(0) : Warning - Unknown: A session is active. You cannot change
the session module's ini settings at this time.

#### echo '<?php echo "1\n";' | ./sapi/cgi/php 
Content-type: text/html

1
libxml:  Request shutdown
xcache:  Request shutdown
tokenizer:  Request shutdown
standard:  Request shutdown
SPL:  Request shutdown
PDO:  Request shutdown
session:  Request shutdown
sockets:  Request shutdown
sk:  Request shutdown
SQLite:  Request shutdown
pcntl:  Request shutdown
mysqli:  Request shutdown
mysql:  Request shutdown
memcache:  Request shutdown
event:  Request shutdown
date:  Request shutdown
bcmath:  Request shutdown

------------------------------------------------------------------------

[2005-09-16 15:48:20] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip

And provide a script that actually is usable. For that script it's
perfectly fine to give an error.. 
Also: The version string in the 'Version' field in the bug reports MUST
start with a number 4,5 or 6.

------------------------------------------------------------------------

[2005-09-14 08:32:02] Xuefer at 21cn dot com

i have verified it in lastest cvs in 4.4 branch.


./sapi/cgi/php -c /home/xuefer/etc/php.ini test.php 
Content-type: text/html
X-Powered-By: PHP/4.4.1-dev
Set-Cookie: PHPSESSID=b50128d8959939728d21dd36eaf15b7c; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
Pragma: no-cache

<br />
<b>Warning</b>:  Unknown(): A session is active. You cannot change the
session module's ini settings at this time. in <b>Unknown</b> on line
<b>0</b><br />

php.ini:
include_path=".:/usr/local/lib/php"
display_errors=On
error_reporting=E_ALL
log_errors = On
error_log = /tmp/phperr
memory_limit = 50M
(no other options)

reproduce script:
<?php
function dummy() {
    return '';
}
function test() {
    exit;
}

$open = $close = $read = $destroy = $gc = 'dummy';
$write = 'test';
session_set_save_handler($open, $close, $read, $write, $destroy, $gc);
session_start();
?>

------------------------------------------------------------------------

[2005-09-02 08:44:21] [EMAIL PROTECTED]

Can not reproduce, there's been couple of reports and none them with
proper way to get this reproduced. Most likely user error.

------------------------------------------------------------------------

[2005-02-12 09:23:34] Xuefer at 21cn dot com

confirmed with CVS
again, exit() in sess_write() cause this issue
other modules after session module is not shutdown properly

i don't see any fix in the php4-src/ext/session/ source

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/21306

-- 
Edit this bug report at http://bugs.php.net/?id=21306&edit=1

Reply via email to