bug77494.phpt 431 B

12345678910111213141516
  1. --TEST--
  2. Bug #77494 (Disabling class causes segfault on member access)
  3. --SKIPIF--
  4. <?php if (!extension_loaded("curl")) exit("skip curl extension not loaded"); ?>
  5. --INI--
  6. disable_classes=CURLFile
  7. --FILE--
  8. <?php
  9. $a = new CURLFile();
  10. var_dump($a->name);
  11. ?>
  12. --EXPECTF--
  13. Warning: CURLFile() has been disabled for security reasons in %sbug77494.php on line 2
  14. Notice: Undefined property: CURLFile::$name in %sbug77494.php on line 3
  15. NULL