svn: /web/php-master/trunk/scripts/ rest_render update-backend

From: Date: Sat, 08 Jan 2011 15:35:50 +0000
Subject: svn: /web/php-master/trunk/scripts/ rest_render update-backend
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-10323@lists.php.net to get a copy of this message
bjori Sat, 08 Jan 2011 15:35:50 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=307269 Log: Use the SVN urls for the reST files, and ignore the annoying strict&deprecated notices in that lib Changed paths: U web/php-master/trunk/scripts/rest_render U web/php-master/trunk/scripts/update-backend Modified: web/php-master/trunk/scripts/rest_render =================================================================== --- web/php-master/trunk/scripts/rest_render 2011-01-08 15:22:42 UTC (rev 307268) +++ web/php-master/trunk/scripts/rest_render 2011-01-08 15:35:50 UTC (rev 307269) @@ -6,8 +6,11 @@ // Formatting guide see also: http://docutils.sourceforge.net/docs/user/rst/quickref.html $path = dirname(__FILE__) . "/../include/"; +$curr = error_reporting(); +error_reporting($curr ^ (E_STRICT|E_DEPRECATED)); require_once $path.'Text/reST.php'; require_once $path.'Text/reST/Formatter.php'; +error_reporting($curr); function pregen_rest_files($rest_dir, $urls) { if (!file_exists($rest_dir)) { @@ -17,11 +20,13 @@ } } - $base_url = 'http://cvs.php.net/viewvc.cgi/'; + $base_url = 'http://svn.php.net/repository/php/'; + $curr = error_reporting(); + error_reporting($curr ^ (E_STRICT|E_DEPRECATED)); $filenames = array(); foreach ($urls as $rel_path) { - $url = $base_url.$rel_path.'?view=co'; + $url = $base_url.$rel_path; $string = file_get_contents($url); if (!$string) { trigger_error("FAIL. Someone mail systems@ and fix httpd on y1", E_USER_WARNING); @@ -40,5 +45,7 @@ echo "Removing old reST cache file: $old\n"; unlink($old); } + + error_reporting($curr); } Modified: web/php-master/trunk/scripts/update-backend =================================================================== --- web/php-master/trunk/scripts/update-backend 2011-01-08 15:22:42 UTC (rev 307268) +++ web/php-master/trunk/scripts/update-backend 2011-01-08 15:35:50 UTC (rev 307269) @@ -56,10 +56,10 @@ include "rest_render"; /* URLs to parse/render */ $urls = array( - 'php-src/CODING_STANDARDS', - 'php-src/README.CVS-RULES', - 'php-src/README.MAILINGLIST_RULES', - 'php-src/README.RELEASE_PROCESS', + 'php-src/trunk/CODING_STANDARDS', + 'php-src/trunk/README.SVN-RULES', + 'php-src/trunk/README.MAILINGLIST_RULES', + 'php-src/trunk/README.RELEASE_PROCESS', ); pregen_rest_files("$root/reST/cache/", $urls);

« previous php.webmaster (#10323) next »