svn: /web/php-rmtools/trunk/include/ Auth.php

From: Date: Mon, 18 Jan 2010 20:15:57 +0000
Subject: svn: /web/php-rmtools/trunk/include/ Auth.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-7075@lists.php.net to get a copy of this message
pajoye Mon, 18 Jan 2010 20:15:57 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=293707 Log: - just fail nicely if master fails, still have to figure a way to silent warning without @ Changed paths: U web/php-rmtools/trunk/include/Auth.php Modified: web/php-rmtools/trunk/include/Auth.php =================================================================== --- web/php-rmtools/trunk/include/Auth.php 2010-01-18 19:04:54 UTC (rev 293706) +++ web/php-rmtools/trunk/include/Auth.php 2010-01-18 20:15:57 UTC (rev 293707) @@ -25,10 +25,14 @@ "method" => "POST", "header" => "Content-type: application/x-www-form-urlencoded", "content" => $post, + "ignore_errors" => TRUE, ); $ctx = stream_context_create(array("http" => $opts)); $s = file_get_contents("https://master.php.net/fetch/cvsauth.php", false, $ctx); + if (!$s) { + return false; + } $a = unserialize($s); /* define("E_UNKNOWN", 0);

« previous php.webmaster (#7075) next »