diff --git a/ext/curl/tests/bug45161.phpt b/ext/curl/tests/bug45161.phpt index eab1fd46e31..46d981054c2 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) +}