Missing attachment!

--
------------------------------------------------------------------------
Bandvulc Group <http://www.bandvulc.co.uk>        Zend PHP Certificate
<http://zend.com/zce.php?c=ZEND002498&r=213474731>Richard Quadling
Software Developer
Telephone       +44 (0) 1752 893559 extension 286
Fax     +44 (0) 1752 690794
Email   [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>

Index: php_ini.c
===================================================================
RCS file: /repository/php-src/main/php_ini.c,v
retrieving revision 1.142
diff -u -r1.142 php_ini.c
--- php_ini.c   8 Mar 2006 14:41:45 -0000       1.142
+++ php_ini.c   19 Jun 2006 12:16:59 -0000
@@ -428,6 +428,17 @@
                                }
                        }
                }
+               /* RAQ : 2006-06-19 - Search 
php%php-major-version%-%sapi-module-name%.ini file in search path */
+               if (!fh.handle.fp) {
+                       const char *fmt = "php%s-%s.ini";
+                       char *ini_fname = emalloc(strlen(fmt) + 
strlen(sapi_module.name) + (PHP_MAJOR_VERSION < 10 ? 1 : 2)); // Allow for PHP 
10 in many years time.
+                       sprintf(ini_fname, fmt, PHP_MAJOR_VERSION, 
sapi_module.name);
+                       fh.handle.fp = php_fopen_with_path(ini_fname, "r", 
php_ini_search_path, &php_ini_opened_path TSRMLS_CC);
+                       efree(ini_fname);
+                       if (fh.handle.fp) {
+                               fh.filename = php_ini_opened_path;
+                       }
+               }
                /* Search php-%sapi-module-name%.ini file in search path */
                if (!fh.handle.fp) {
                        const char *fmt = "php-%s.ini";

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to