File size: 591 Bytes
1e94262
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--TEST--
Bug #80121: Null pointer deref if CurlHandle directly instantiated
--EXTENSIONS--
curl
--FILE--
<?php

try {
    new CurlHandle;
} catch (Error $e) {
    echo $e->getMessage(), "\n";
}
try {
    new CurlMultiHandle;
} catch (Error $e) {
    echo $e->getMessage(), "\n";
}
try {
    new CurlShareHandle;
} catch (Error $e) {
    echo $e->getMessage(), "\n";
}

?>
--EXPECT--
Cannot directly construct CurlHandle, use curl_init() instead
Cannot directly construct CurlMultiHandle, use curl_multi_init() instead
Cannot directly construct CurlShareHandle, use curl_share_init() instead