Decoded Output
Download--TEST--
Bug #66251 (Constants get statically bound at compile time when Optimized)
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.optimization_level=-1
--EXTENSIONS--
opcache
--FILE--
<?php
printf ("A=%s
", getA());
const A="hello";
function getA() {return A;}
?>
--EXPECTF--
Fatal error: Uncaught Error: Undefined constant "A" in %s:%d
Stack trace:
#0 %s(%d): getA()
#1 {main}
thrown in %s on line %d
Did this file decode correctly?
How would you describe this file?
Thank you for your feedback! This will help us detect malicious PHP files more accurately in the future.
Function Calls
| getA | 1 |
|---|
Variables
None
Stats
| MD5 | 2bd4bae02923eb85 |
|---|---|
| Eval Count | 0 |
| Decode Time | 81 ms |
Original Code
--TEST--
Bug #66251 (Constants get statically bound at compile time when Optimized)
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.optimization_level=-1
--EXTENSIONS--
opcache
--FILE--
<?php
printf ("A=%s\n", getA());
const A="hello";
function getA() {return A;}
?>
--EXPECTF--
Fatal error: Uncaught Error: Undefined constant "A" in %s:%d
Stack trace:
#0 %s(%d): getA()
#1 {main}
thrown in %s on line %d