bug77494.phpt 575 B

1234567891011121314151617181920212223
  1. --TEST--
  2. Bug #77494 (Disabling class causes segfault on member access)
  3. --EXTENSIONS--
  4. curl
  5. --INI--
  6. disable_classes=CURLFile,ErrorException
  7. --FILE--
  8. <?php
  9. $a = new CURLFile();
  10. var_dump($a->name);
  11. $b = new ErrorException();
  12. var_dump($b->message);
  13. ?>
  14. --EXPECTF--
  15. Warning: CURLFile() has been disabled for security reasons in %sbug77494.php on line 2
  16. Warning: Undefined property: CURLFile::$name in %s on line %d
  17. NULL
  18. Warning: ErrorException() has been disabled for security reasons in %s on line %d
  19. Warning: Undefined property: ErrorException::$message in %s on line %d
  20. NULL