Bug #71038 [NEW]: session_start() returns TRUE on failure

From: Date: Sat, 05 Dec 2015 15:27:21 +0000
Subject: Bug #71038 [NEW]: session_start() returns TRUE on failure
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-197618@lists.php.net to get a copy of this message
From: pfenderd at bellsouth dot net Operating system: Linux PHP version: 5.6.16 Package: Session related Bug Type: Bug Bug description:session_start() returns TRUE on failure Description: ------------ On a hosting server, the /tmp file system was mounted as read-only. The function session_start() returned TRUE on failure to open a session file. It should have returned FALSE. There is a Warning message issued by PHP but it should have been an ERROR message. Test script: --------------- session_start(); session_write_close(); Expected result: ---------------- session_start needs to return FALSE on failure to open a session. Actual result: -------------- Warning: session_start(): open(/tmp/sess_99c3aa0ceeec362b9de4ece520aeef64, O_RDWR) failed: Read-only file system (30) in /homepages/21/d361866886/htdocs/dayspeak_net/testlp.php on line 2 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /homepages/21/d361866886/htdocs/dayspeak_net/testlp.php:2) in /homepages/21/d361866886/htdocs/dayspeak_net/testlp.php on line 2 Warning: session_write_close(): open(/tmp/sess_99c3aa0ceeec362b9de4ece520aeef64, O_RDWR) failed: Read-only file system (30) in /homepages/21/d361866886/htdocs/dayspeak_net/testlp.php on line 3 Warning: session_write_close(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in /homepages/21/d361866886/htdocs/dayspeak_net/testlp.php on line 3 -- Edit bug report at https://bugs.php.net/bug.php?id=71038&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71038&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71038&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71038&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=71038&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=71038&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=71038&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=71038&r=needscript Try newer version: https://bugs.php.net/fix.php?id=71038&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=71038&r=support Expected behavior: https://bugs.php.net/fix.php?id=71038&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=71038&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=71038&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=71038&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71038&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=71038&r=dst IIS Stability: https://bugs.php.net/fix.php?id=71038&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=71038&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=71038&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=71038&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=71038&r=mysqlcfg

« previous php.bugs (#197618) next »