#44722 [NEW]: The save_path cannot contain NULL characters
| From: | antphill at uk dot ibm dot com | Date: | Mon, 14 Apr 2008 16:20:43 +0000 |
| Subject: | #44722 [NEW]: The save_path cannot contain NULL characters | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-124220@lists.php.net to get a copy of this message | ||
From: antphill at uk dot ibm dot com
Operating system: SUSE Linux
PHP version: 6CVS-2008-04-14 (snap)
PHP Bug Type: Session related
Bug description: The save_path cannot contain NULL characters
Description:
------------
Calling session_save_path() with no arguments produces a warning: "The
save_path cannot contain NULL characters" and returns FALSE instead of an
empty string. This only reproduces on Linux, on Windows the test passes as
expected.
Reproduce code:
---------------
<?php
ob_start();
echo "*** Testing session_save_path() : error functionality ***\n";
$directory = dirname(__FILE__);
var_dump(session_save_path());
var_dump(session_save_path($directory));
var_dump(session_save_path());
echo "Done";
ob_end_flush();
?>
Expected result:
----------------
--EXPECTF--
*** Testing session_save_path() : error functionality ***
string(0) ""
string(0) ""
string(%d) "%s"
Done
--UEXPECTF--
*** Testing session_save_path() : error functionality ***
unicode(0) ""
unicode(0) ""
unicode(%d) "%s"
Done
Actual result:
--------------
*** Testing session_save_path() : error functionality ***
Warning: session_save_path(): The save_path cannot contain NULL
characters. in
/mnt/hgfs/Projects/Session/php-6.0/session_save_path_basic.php on line 14
bool(false)
string(0) ""
string(34) "/mnt/hgfs/Projects/Session/php-6.0"
Done
--
Edit bug report at http://bugs.php.net/?id=44722&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44722&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44722&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44722&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=44722&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=44722&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=44722&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=44722&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=44722&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=44722&r=support
Expected behavior: http://bugs.php.net/fix.php?id=44722&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=44722&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=44722&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=44722&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44722&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=44722&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=44722&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=44722&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=44722&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=44722&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=44722&r=mysqlcfg