php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | |
Patch bug61011.phpt for Reproducible crash Bug #61011Patch version 2012-02-08 16:05 UTC Return to Bug #61011 | Download this patchThis patch is obsolete Obsoleted by patches: Patch Revisions: 2012-02-11 03:14 UTC | 2012-02-08 16:05 UTCDeveloper: laruence@php.netLine 1 (now 1), was 35 lines, now 15 lines --TEST-- Bug #61011 (Crash when an exception is thrown by __autoload accessing a static property) --FILE-- <?php function __autoload($name) { throw new Exception($name); function __autoload($class) { throw new Exception($class); } try { echo AAA::$a; //zend_fetch_var_address_helper NoExistsClass::$property; } catch (Exception $e) { try { echo AAA::XXX; //ZEND_FETCH_CONSTANT } catch (Exception $e) { try { echo AAA::foo(); //ZEND_INIT_STATIC_METHOD_CALL } catch (Exception $e) { try { unset(AAA::$a); // ZEND_UNSET_VAR } catch (Exception $e){ try { isset(AAAA::$a); // ZEND_ISSET_ISEMPTY_VAR } catch (Exception $e) { try { $a = array("AAA", "foo"); $a(); //ZEND_INIT_FCALL_BY_NAME } catch (Exception $e) { } } } } } } echo 'okey'; --EXPECT-- okey |
Copyright © 2001-2024 The PHP Group All rights reserved. |
Last updated: Mon Sep 09 11:01:28 2024 UTC |