Download src/php/php-src/Zend/tests/autoload/bug61011.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 976 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/autoload/bug61011.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/autoload/bug61011.phpt
-
curl -L -o bug61011.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/autoload/bug61011.phpt
976 Bytes
| --TEST-- | |
| Bug #61011 (Crash when an exception is thrown by autoloader accessing a static property) | |
| --FILE-- | |
| spl_autoload_register(function ($name) { | |
| throw new Exception($name); | |
| }); | |
| try { | |
| echo AAA::$a; //zend_fetch_var_address_helper | |
| } 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 | |