From: hostmaster at uuism dot net Operating system: Fedora Core 4 PHP version: 5.2.6 PHP Bug Type: Reproducible crash Bug description: invalid session.save_path should not cause a segfault - still does
Description: ------------ when I run test ext/session/tests/016.phpt, I still get a core dump with PHP 5.2.6 and FC4 and Linux Kernel 2.6.20.1. The script run-tests puts FAIL in front of the description. This same problem was reported in Bug #43361 invalid session.save_path test cause php crash Here are the results: # TEST_PHP_EXECUTABLE=sapi/cli/php sapi/cli/php run-tests.php ext/session/tests/016.phpt ===================================================================== PHP : sapi/cli/php PHP_SAPI : cli PHP_VERSION : 5.2.6 ZEND_VERSION: 2.2.0 PHP_OS : Linux - Linux host.uuserver.net 2.6.20.1 #16 SMP Thu Nov 8 14:19:44 EST 2007 i686 INI actual : /usr/local/src/php-5.2.6/sapi/cli/php.ini More .INIs : /etc/php.d/mysql.ini,/etc/php.d/mysqli.ini CWD : /usr/local/src/php-5.2.6 Extra dirs : ===================================================================== Running selected tests. FAIL invalid session.save_path should not cause a segfault [ext/session/tests/016.phpt] ===================================================================== Number of tests : 1 1 Tests skipped : 0 ( 0.0%) -------- Tests warned : 0 ( 0.0%) ( 0.0%) Tests failed : 1 (100.0%) (100.0%) Tests passed : 0 ( 0.0%) ( 0.0%) --------------------------------------------------------------------- Time taken : 1 seconds ===================================================================== ===================================================================== FAILED TEST SUMMARY --------------------------------------------------------------------- invalid session.save_path should not cause a segfault [ext/session/tests/016.phpt] ===================================================================== Reproduce code: --------------- --INI-- session.save_path="123;:/really\\completely:::/invalid;;,23123;213" session.use_cookies=0 session.cache_limiter= session.save_handler=files session.serialize_handler=php --FILE-- <?php error_reporting(E_ALL); @session_start(); $HTTP_SESSION_VARS["test"] = 1; @session_write_close(); print "I live\n"; ?> Expected result: ---------------- no core dump Actual result: -------------- core dump -- Edit bug report at http://bugs.php.net/?id=46444&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46444&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46444&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46444&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=46444&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=46444&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=46444&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=46444&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=46444&r=needscript Try newer version: http://bugs.php.net/fix.php?id=46444&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=46444&r=support Expected behavior: http://bugs.php.net/fix.php?id=46444&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=46444&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=46444&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=46444&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46444&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=46444&r=dst IIS Stability: http://bugs.php.net/fix.php?id=46444&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=46444&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=46444&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=46444&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=46444&r=mysqlcfg
