Bug #55020 [NEW]: __callStatic with __call causes crash
| From: | ebert at woltlab dot com | Date: | Thu, 09 Jun 2011 19:03:28 +0000 |
| Subject: | Bug #55020 [NEW]: __callStatic with __call causes crash | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-161264@lists.php.net to get a copy of this message | ||
From:
Operating system: Windows 7 x64
PHP version: 5.3.6
Package: Class/Object related
Bug Type: Bug
Bug description:__callStatic with __call causes crash
Description:
------------
PHP crashes if a __call()- and __callStatic()-method exists, whereas
__call() redirects calls to __callStatic(), this is likely related to
http://bugs.php.net/bug.php?id=49542
System:
Microsoft IIS 7.5
PHP 5.3.6 NTS
Test script:
---------------
Foo-Class (crashes): http://nopaste.php-quake.net/27860
Bar-Class (work-around): http://nopaste.php-quake.net/27861
Expected result:
----------------
// Foo-Class
Called static method one()
Called static method three()
// Bar-Class
Called static method one()
Called static method three()
Actual result:
--------------
// Foo-Class
PHP-Crash
// Bar-Class
Called static method one()
Called static method three()
--
Edit bug report at http://bugs.php.net/bug.php?id=55020&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=55020&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=55020&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=55020&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=55020&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=55020&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=55020&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=55020&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=55020&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=55020&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=55020&r=support
Expected behavior: http://bugs.php.net/fix.php?id=55020&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=55020&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=55020&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=55020&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=55020&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=55020&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=55020&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=55020&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=55020&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=55020&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=55020&r=mysqlcfg