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