#26781 [NEW]: wddx session handler crash with class variable.

From: Date: Sun, 04 Jan 2004 14:14:42 +0000
Subject: #26781 [NEW]: wddx session handler crash with class variable.
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-52768@lists.php.net to get a copy of this message
From: hirokawa@php.net Operating system: Windows 2000SP4 PHP version: 5.0.0b3 (beta3) PHP Bug Type: Session related Bug description: wddx session handler crash with class variable. Description: ------------ wddx session handler is work well for string and integer variables. But, web server always crash when I tried to recover session variables after php object was saved as session variable. my php.ini, session.serialize_handler = wddx session.save_path = "c:\temp" Reproduce code: --------------- <?php class MyClass { public $c; function __construct() { $this->c = 'foo'; } function show() { return $this->c; } } session_start(); if (!isset($_SESSION['c'])) { $c = new MyClass(); $_SESSION['c'] = $c; } print $_SESSION['c']->show(); ?> Expected result: ---------------- foo Actual result: -------------- When reload this script, web server should be terminated. For another serializer such as php or php_binary, it works well as expected. -- Edit bug report at http://bugs.php.net/?id=26781&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26781&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26781&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26781&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26781&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26781&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=26781&r=needscript Try newer version: http://bugs.php.net/fix.php?id=26781&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26781&r=support Expected behavior: http://bugs.php.net/fix.php?id=26781&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26781&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26781&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26781&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26781&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26781&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26781&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26781&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26781&r=float

« previous php.bugs (#52768) next »