#42615 [NEW]: session ext breaks bug27508
| From: | igor at ypass dot net | Date: | Mon, 10 Sep 2007 17:57:00 +0000 |
| Subject: | #42615 [NEW]: session ext breaks bug27508 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-117365@lists.php.net to get a copy of this message | ||
From: igor at ypass dot net
Operating system: Solaris 10 x86
PHP version: 5.2.4
PHP Bug Type: Session related
Bug description: session ext breaks bug27508
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 bug report at http://bugs.php.net/?id=42615&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42615&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42615&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42615&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42615&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=42615&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=42615&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=42615&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=42615&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=42615&r=support
Expected behavior: http://bugs.php.net/fix.php?id=42615&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=42615&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=42615&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42615&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42615&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42615&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=42615&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=42615&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=42615&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=42615&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=42615&r=mysqlcfg