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