bjori Thu, 17 Sep 2009 11:36:29 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=288404
Log: Fixed bug#49578 (make install-pear fails) # Apparently this script was using 5.3 functionality # Workaround would be to install 'wget' Bug: http://bugs.php.net/49578 (Assigned) make install-pear fails Changed paths: U php/php-src/branches/PHP_5_2/pear/fetch.php Modified: php/php-src/branches/PHP_5_2/pear/fetch.php =================================================================== --- php/php-src/branches/PHP_5_2/pear/fetch.php 2009-09-17 10:35:05 UTC (rev 288403) +++ php/php-src/branches/PHP_5_2/pear/fetch.php 2009-09-17 11:36:29 UTC (rev 288404) @@ -61,7 +61,12 @@ ); } -$ctx = stream_context_create($copt, array("notification" => "stream_notification_callback")); +if ($copt) { + $ctx = stream_context_create($copt); +} else { + $ctx = stream_context_create(); +} +stream_context_set_params($ctx, array("notification" => "stream_notification_callback")); $fp = fopen($argv[1], "r", false, $ctx); if (is_resource($fp) && file_put_contents($argv[2], $fp)) {
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
