mirror of
https://github.com/php/php-src.git
synced 2024-12-16 05:15:03 +08:00
39131219e8
This is a mix of more automated and manual migration. It should remove all applicable extension_loaded() checks outside of skipif.inc files.
24 lines
575 B
PHP
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
|