From: truth at proposaltech dot com Operating system: CentOS PHP version: 5.4.3 Package: Session related Bug Type: Bug Bug description:rfc1867 crashes php even though turned off
Description: ------------ php_session_rfc1867_callback() tries to call php_session_rfc1867_orig_callback() even if the rfc1867 feature is not enabled. Switching the order of the opening "if" blocks fixes the problem. (The second "if" block immediately returns success if the feature isn't enabled and the first "if" block tries to call the callback. This is all around line 2388 of session.c.) I upgraded from 5.3.3 to 5.4.3 and apache was segfaulting. I produced a core and the debugger showed infinite recursion in php_session_rfc1867_callback(). There are probably deeper problems here, but at the least the feature shouldn't cause problems if it is turned off. In any case, even if something about my configuration is less than ideal, seg faults are Bad Thing. Test script: --------------- Apparently, my code wasn't executed. I tried using Xdebug, but it didn't report anything. dump_bt didn't return anything in the debugger. Expected result: ---------------- I expected my code to be executed normally. Actual result: -------------- apache seg faulted -- Edit bug report at https://bugs.php.net/bug.php?id=62129&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62129&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62129&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62129&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=62129&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62129&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=62129&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=62129&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=62129&r=needscript Try newer version: https://bugs.php.net/fix.php?id=62129&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=62129&r=support Expected behavior: https://bugs.php.net/fix.php?id=62129&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=62129&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=62129&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=62129&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62129&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=62129&r=dst IIS Stability: https://bugs.php.net/fix.php?id=62129&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=62129&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=62129&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=62129&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=62129&r=mysqlcfg