xref: /PHP-8.0/Zend/tests/bug77494.phpt (revision 2f92957f)
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
15Warning: Undefined property: CURLFile::$name in %s on line %d
16NULL
17