summaryrefslogtreecommitdiff
path: root/Zend/tests/bug77494.phpt
blob: adab05bef74e2ccd9aced45e7ff4ad98bf876514 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Bug #77494 (Disabling class causes segfault on member access)
--SKIPIF--
<?php if (!extension_loaded("curl")) exit("skip curl extension not loaded"); ?>
--INI--
disable_classes=CURLFile
--FILE--
<?php
$a = new CURLFile();
var_dump($a->name);
?>
--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