diff options
author | Stanley Sufficool <ssufficool@php.net> | 2013-10-05 17:57:23 -0700 |
---|---|---|
committer | Stanley Sufficool <ssufficool@php.net> | 2013-10-05 17:57:23 -0700 |
commit | 3e023c3ddf9e80046803a989f4951ee16d3b8f9b (patch) | |
tree | 602f3b798d09f49f069fd9a046d502931f56c158 /main/php_ini.c | |
parent | b144c263191f857391d3cc009951c95d25a2cdb3 (diff) | |
parent | 3261eb348f5aea14f74010d883cfc68978fd8ed9 (diff) | |
download | php-git-3e023c3ddf9e80046803a989f4951ee16d3b8f9b.tar.gz |
Merge branch 'master' of https://git.php.net/push/php-src
* 'master' of https://git.php.net/push/php-src: (705 commits)
Allow the ldap extension to be compiled with Oracle's LDAP implementation, if desired. Note the implementations differ so you will see different ldap behavior.
Fix bug #65667: ftp_nb_continue produces segfault
fix bug #64146 (serialize incorrectly saving objects when they are cloned)
such a weird hack probably helps in finding regressions in the future
Fix bug #65821: By-ref foreach on property access of string offset segfaults
Fixed bug #64230 (XMLReader does not suppress errors)
add NEWS and UPGRADING about gost-crypto
fix bug #55285 XMLReader::getAttribute/No/Ns methods inconsistency
typo: really fix bug #51936 Crash with clone xmlreader
fix bug #59613 (Crash with clone XMLReader)
Fix Bug #60633 build warning in bcmath
fix bug #65808 the socket_connect() won't work with IPv6 address
5.4.22-dev now
Revert "Make 'make distclean' remove the downloaded pear PHAR"
fix bug #62396 'make test' crashes starting with 5.3.14 (missing gzencode())
Fixed bug #61548
Reverted patch (it was used for internal testing and was committed by accident)
OCI8 2.0: Added a new oci_set_db_operation() user space function for the "DB Operation" tracing feature of Oracle DB 12c.
Make 'make distclean' remove the downloaded pear PHAR
fix test
...
Diffstat (limited to 'main/php_ini.c')
-rw-r--r-- | main/php_ini.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/main/php_ini.c b/main/php_ini.c index cb2c7ea808..e9529a2d29 100644 --- a/main/php_ini.c +++ b/main/php_ini.c @@ -802,7 +802,12 @@ PHPAPI void php_ini_activate_per_dir_config(char *path, uint path_len TSRMLS_DC) char path_bak[MAXPATHLEN]; #endif +#if PHP_WIN32 + /* MAX_PATH is \0-terminated, path_len == MAXPATHLEN would overrun path_bak */ + if (path_len >= MAXPATHLEN) { +#else if (path_len > MAXPATHLEN) { +#endif return; } |