1--TEST-- 2Bug #53241 (stream casting that relies on fdopen/fopencookie fails with 'xb' mode) 3--EXTENSIONS-- 4curl 5--SKIPIF-- 6<?php 7/* unfortunately no standard function does a cast to FILE*, so we need 8 * curl to test this */ 9?> 10--FILE-- 11<?php 12$fn = __DIR__ . "/test.tmp"; 13@unlink($fn); 14$fh = fopen($fn, 'xb'); 15$ch = curl_init('http://www.yahoo.com/'); 16var_dump(curl_setopt($ch, CURLOPT_FILE, $fh)); 17echo "Done.\n"; 18?> 19--CLEAN-- 20<?php 21$fn = __DIR__ . "/test.tmp"; 22@unlink($fn); 23?> 24--EXPECT-- 25bool(true) 26Done. 27