Re: svn: /php/php-src/ branches/PHP_5_3/NEWS branches/PHP_5_3/main/php_ini.c branches/PHP_5_3/sapi/cgi/cgi_main.c trunk/main/php_ini.c
trunk/sapi/cgi/cgi_main.c
| From: | Hannes Magnusson | Date: | Fri, 09 Oct 2009 20:20:25 +0000 |
| Subject: | Re: svn: /php/php-src/ branches/PHP_5_3/NEWS branches/PHP_5_3/main/php_ini.c branches/PHP_5_3/sapi/cgi/cgi_main.c trunk/main/php_ini.c trunk/sapi/cgi/cgi_main.c |
||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-60646@lists.php.net to get a copy of this message | ||
On Fri, Oct 9, 2009 at 21:43, Garrett Serack <garretts@php.net> wrote:
> garretts Fri, 09 Oct 2009 19:43:00 +0000
>
> Revision:
> http://svn.php.net/viewvc?view=revision&revision=289445
>
> Log:
> - changed ini file directives [PATH=](on Win32) and [HOST=](on all) to be case insensitive
> (garretts)
>
> Changed paths:
> U php/php-src/branches/PHP_5_3/NEWS
> U php/php-src/branches/PHP_5_3/main/php_ini.c
> U php/php-src/branches/PHP_5_3/sapi/cgi/cgi_main.c
> U php/php-src/trunk/main/php_ini.c
> U php/php-src/trunk/sapi/cgi/cgi_main.c
>
> Modified: php/php-src/branches/PHP_5_3/NEWS
> ===================================================================
> --- php/php-src/branches/PHP_5_3/NEWS 2009-10-09 19:13:33 UTC (rev 289444)
> +++ php/php-src/branches/PHP_5_3/NEWS 2009-10-09 19:43:00 UTC (rev 289445)
> @@ -1,6 +1,8 @@
> PHP
> NEWS
> |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> ?? ??? 20??, PHP 5.3.2
> +- changed ini file directives [PATH=](on Win32) and [HOST=](on all) to be case
> + insensitive (garretts)
> - Added ReflectionMethod::setAccessible() for invoking non-public methods
> through the Reflection API. (Sebastian)
>
>
> Modified: php/php-src/branches/PHP_5_3/main/php_ini.c
> ===================================================================
> --- php/php-src/branches/PHP_5_3/main/php_ini.c 2009-10-09 19:13:33 UTC (rev 289444)
> +++ php/php-src/branches/PHP_5_3/main/php_ini.c 2009-10-09 19:43:00 UTC (rev 289445)
> @@ -41,6 +41,20 @@
> #define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG)
> #endif
>
> +#ifdef PHP_WIN32
> +#define TRANSLATE_SLASHES(path) \
> + { \
> + char *tmp = path; \
> + while (*tmp) { \
> + if (*tmp == '\\') *tmp = '/'; \
> + tmp++; \
> + } \
> + }
> +#else
> +#define TRANSLATE_SLASHES(path)
> +#endif
> +
> +
> typedef struct _php_extension_lists {
> zend_llist engine;
> zend_llist functions;
> @@ -273,7 +287,13 @@
> key_len = Z_STRLEN_P(arg1) -
> sizeof("PATH") + 1;
> is_special_section = 1;
> has_per_dir_config = 1;
> +#ifdef PHP_WIN32
> + // make the path lowercase on
> Windows, for case insensitivty.
> + strlwr(key);
Sorry for my ignorance, but would this work for IDN?
-Hannes