bug79919.phpt 272 B

1234567891011121314
  1. --TEST--
  2. Bug #79919 (Stack use-after-scope in define())
  3. --SKIPIF--
  4. <?php
  5. if (!extension_loaded('simplexml')) die('skip simplexml extension not available');
  6. ?>
  7. --FILE--
  8. <?php
  9. $b = error_log(0);
  10. $b = simplexml_load_string('<xml/>', null, $b);
  11. define(0, $b);
  12. ?>
  13. --EXPECT--
  14. 0