summaryrefslogtreecommitdiff
path: root/ext/curl/tests/curl_file_serialize.phpt
blob: 7748272b7610d3574ea925b5eb18f648add769d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
CURL file uploading
--SKIPIF--
<?php
if (!extension_loaded("curl")) {
	exit("skip curl extension not loaded");
}
?>
--FILE--
<?php
$file = new CURLFile(__DIR__ . '/curl_testdata1.txt');
var_dump(serialize($file));
?>
--EXPECTF--
Fatal error: Uncaught Exception: Serialization of 'CURLFile' is not allowed in %s:%d
Stack trace:
#0 %s(%d): serialize(Object(CURLFile))
#1 {main}
  thrown in %s on line %d