svn: /web/php/trunk/include/ shared-manual.inc

From: Date: Wed, 06 Jul 2011 11:27:32 +0000
Subject: svn: /web/php/trunk/include/ shared-manual.inc
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-11467@lists.php.net to get a copy of this message
bjori Wed, 06 Jul 2011 11:27:32 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=313004 Log: check if it exists before trying to open it Changed paths: U web/php/trunk/include/shared-manual.inc Modified: web/php/trunk/include/shared-manual.inc =================================================================== --- web/php/trunk/include/shared-manual.inc 2011-07-06 11:25:28 UTC (rev 313003) +++ web/php/trunk/include/shared-manual.inc 2011-07-06 11:27:32 UTC (rev 313004) @@ -428,6 +428,10 @@ substr($hash, 0, 2) . "/$hash"; // Open the note file for reading and get the data (12KB) + // ..if it exists + if (!file_exists($notes_file)) { + return $notes; + } if ($fp = @fopen($notes_file, "r")) { while (!feof($fp)) { $line = chop(fgets($fp, 12288));

« previous php.webmaster (#11467) next »