From: Jani Taskinen Date: Thu, 30 Apr 2009 10:41:09 +0000 (+0000) Subject: - Add missing test X-Git-Tag: php-5.4.0alpha1~191^2~3806 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e51d4cb545185273bbc87c472327440cb67f53ce;p=php - Add missing test --- diff --git a/ext/curl/tests/bug45161.phpt b/ext/curl/tests/bug45161.phpt index eab1fd46e3..46d981054c 100644 --- a/ext/curl/tests/bug45161.phpt +++ b/ext/curl/tests/bug45161.phpt @@ -1,5 +1,7 @@ --TEST-- Bug #45161 (Reusing a curl handle leaks memory) +--SKIPIF-- += 7.17.0"); ?> --FILE-- TRUE, + CURLOPT_BINARYTRANSFER => TRUE +); + +curl_setopt( $ch, CURLOPT_AUTOREFERER , TRUE ); + +foreach( $opt as $option => $value ) { + curl_setopt( $ch, $option, $value ); +} + +var_dump($opt); // with this bug, $opt[58] becomes NULL + +?> +--EXPECT-- +array(2) { + [58]=> + bool(true) + [19914]=> + bool(true) +}