php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch pear_fix_opening_of_empty_php_ini_files.patch for Unknown/Other Function Bug #55194

Patch version 2011-07-13 02:22 UTC

Return to Bug #55194 | Download this patch
Patch Revisions:

Developer: kalessin@kalessin.fr

Index: PEAR/Command/Install.php
===================================================================
--- PEAR/Command/Install.php	(revision 313186)
+++ PEAR/Command/Install.php	(working copy)
@@ -468,7 +468,7 @@
         $ts = preg_match('/Thread Safety.+enabled/', $info) ? '_ts' : '';
         $zend_extension_line = 'zend_extension' . $debug . $ts;
         $all = @file($filename);
-        if (!$all) {
+        if ($all === false) {
             return PEAR::raiseError('php.ini "' . $filename .'" could not be read');
         }
         $zend_extensions = $extensions = array();
@@ -1265,4 +1265,4 @@
 
         return $ret;
     }
-}
\ No newline at end of file
+}
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 16:01:28 2025 UTC