#42615 [Opn]: session ext breaks bug27508
| From: | jani@php.net | Date: | Tue, 11 Sep 2007 11:01:02 +0000 |
| Subject: | #42615 [Opn]: session ext breaks bug27508 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-117386@lists.php.net to get a copy of this message | ||
ID: 42615
Updated by: jani@php.net
Reported By: igor at ypass dot net
Status: Open
Bug Type: Session related
Operating System: Solaris 10 x86
PHP Version: 5.2.4
New Comment:
See bug #27508 (just note to get the friendly url here :)
Previous Comments:
------------------------------------------------------------------------
[2007-09-10 17:57:00] igor at ypass dot net
Description:
------------
The command below works fine without -d "extension=session.so". This
issue was not present in 5.2.3 with the same build options.
Reproduce code:
---------------
/src/php-5.2.4/sapi/cli/php -c '/src/php-5.2.4/tmp-php.ini' -d
"output_handler=" -d "open_basedir=" -d "safe_mode=0" -d
"disable_functions=" -d "output_buffering=Off" -d
"error_reporting=8191"
-d "display_errors=1" -d "display_startup_errors=1" -d "log_errors=0"
-d
"html_errors=0" -d "track_errors=1" -d "report_memleaks=1" -d
"report_zend_debug=0" -d "docref_root=" -d "docref_ext=.html" -d
"error_prepend_string=" -d "error_append_string=" -d
"auto_prepend_file=" -d "auto_append_file=" -d
"magic_quotes_runtime=0"
-d "extension_dir=/src/php-5.2.4/modules/" \
-d "extension=session.so" \
-d "session.auto_start=0" -d "tidy.clean_output=0" -d
"zlib.output_compression=Off" -f
"/src/php-5.2.4/ext/standard/tests/file/bug27508.php"
Expected result:
----------------
bool(false) refcount(1)
0
bool(false) refcount(1)
line1
line2
line3
Actual result:
--------------
Warning: fopen(): URL using bad/illegal format or missing URL in
/src/php-5.2.4/ext/standard/tests/file/bug27508.php on line 8
Warning: fopen(/tmp/foo7oaaaG): failed to open stream: No such file or
directory in /src/php-5.2.4/ext/standard/tests/file/bug27508.php on line
8
Warning: fwrite(): supplied argument is not a valid stream resource in
/src/php-5.2.4/ext/standard/tests/file/bug27508.php on line 20
Warning: fwrite(): supplied argument is not a valid stream resource in
/src/php-5.2.4/ext/standard/tests/file/bug27508.php on line 20
Warning: fwrite(): supplied argument is not a valid stream resource in
/src/php-5.2.4/ext/standard/tests/file/bug27508.php on line 20
Warning: feof(): supplied argument is not a valid stream resource in
/src/php-5.2.4/ext/standard/tests/file/bug27508.php on line 30
bool(false) refcount(1)
Warning: fseek(): supplied argument is not a valid stream resource in
/src/php-5.2.4/ext/standard/tests/file/bug27508.php on line 35
Warning: ftell(): supplied argument is not a valid stream resource in
/src/php-5.2.4/ext/standard/tests/file/bug27508.php on line 25
0
Warning: feof(): supplied argument is not a valid stream resource in
/src/php-5.2.4/ext/standard/tests/file/bug27508.php on line 30
bool(false) refcount(1)
Warning: feof(): supplied argument is not a valid stream resource in
/src/php-5.2.4/ext/standard/tests/file/bug27508.php on line 30
Warning: fread(): supplied argument is not a valid stream resource in
/src/php-5.2.4/ext/standard/tests/file/bug27508.php on line 15
Warning: feof(): supplied argument is not a valid stream resource in
/src/php-5.2.4/ext/standard/tests/file/bug27508.php on line 30
Warning: feof(): supplied argument is not a valid stream resource in
/src/php-5.2.4/ext/standard/tests/file/bug27508.php on line 30
loops like this forever (eventually it stops with out of memory error)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42615&edit=1