
This is a mix of more automated and manual migration. It should remove all applicable extension_loaded() checks outside of skipif.inc files.
16 lines
335 B
PHP
16 lines
335 B
PHP
--TEST--
|
|
CURL file uploading
|
|
--EXTENSIONS--
|
|
curl
|
|
--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
|