#37733 [NEW]: calling basename() and session.bug_compat_42 turned on crashes
| From: | jjirsa at officite dot com | Date: | Wed, 07 Jun 2006 19:07:59 +0000 |
| Subject: | #37733 [NEW]: calling basename() and session.bug_compat_42 turned on crashes | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-98148@lists.php.net to get a copy of this message | ||
From: jjirsa at officite dot com
Operating system: SuSE Linux Enterprise 9
PHP version: 5CVS-2006-06-07 (CVS)
PHP Bug Type: Reproducible crash
Bug description: calling basename() and session.bug_compat_42 turned on crashes
Description:
------------
If session.bug_compat_42 is 1, and I execute the code in a web page,
loading the page causes a segmentation fault.
Changing session.bug_compat_42 to 0, allows the page to load without
problems.
PHP version: 5.0.4
OS version: SLES 9 i686
Reproduce code:
---------------
$page = basename($_SERVER['PHP_SELF']);
Expected result:
----------------
$page would contain the webpage base name, e.g. '/webpage.php'.
Actual result:
--------------
empty page
--
Edit bug report at http://bugs.php.net/?id=37733&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37733&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37733&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37733&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37733&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=37733&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=37733&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=37733&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=37733&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=37733&r=support
Expected behavior: http://bugs.php.net/fix.php?id=37733&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=37733&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=37733&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37733&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37733&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37733&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=37733&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=37733&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=37733&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=37733&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=37733&r=mysqlcfg