On Fri, Oct 9, 2009 at 21:43, Garrett Serack <garre...@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

--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to