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