php-src/Zend/tests/bug77494.phpt
Nikita Popov 39131219e8
Migrate more SKIPIF -> EXTENSIONS (#7139)
This is a mix of more automated and manual migration. It should remove all applicable extension_loaded() checks outside of skipif.inc files.
2021-06-11 12:58:44 +02:00

24 lines
575 B
PHP

--TEST--
Bug #77494 (Disabling class causes segfault on member access)
--EXTENSIONS--
curl
--INI--
disable_classes=CURLFile,ErrorException
--FILE--
<?php
$a = new CURLFile();
var_dump($a->name);
$b = new ErrorException();
var_dump($b->message);
?>
--EXPECTF--
Warning: CURLFile() has been disabled for security reasons in %sbug77494.php on line 2
Warning: Undefined property: CURLFile::$name in %s on line %d
NULL
Warning: ErrorException() has been disabled for security reasons in %s on line %d
Warning: Undefined property: ErrorException::$message in %s on line %d
NULL