]> granicus.if.org Git - php/commitdiff
fix #40455 (proc_open() uses wrong commandline when safe_mode_exec_dir is set)
authorAntony Dovgal <tony2001@php.net>
Tue, 13 Feb 2007 15:55:45 +0000 (15:55 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 13 Feb 2007 15:55:45 +0000 (15:55 +0000)
NEWS
ext/standard/proc_open.c

diff --git a/NEWS b/NEWS
index 9e0832829bd5f759f52f1817851856d01d11b71c..d84df83fb197ea7b6e2540b39ddd490a03b2aca5 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -5,9 +5,13 @@ PHP                                                                        NEWS
 - Upgraded PCRE to version 7.0 (Nuno)
 - Add --ri switch to CLI which allows to check extension information. (Marcus)
 - Added tidyNode::getParent() method (John, Nuno)
+- Fixed bug #40455 (proc_open() uses wrong commandline when safe_mode_exec_dir 
+  is set). (Tony)
 - Fixed bug #40432 (strip_tags() fails with greater than in attribute). (Ilia)
 - Fixed bug #40431 (dynamic properties may cause crash in ReflectionProperty 
   methods). (Tony)
+- Fixed bug #40451 (addAttribute() may crash when used with non-existent child 
+  node). (Tony)
 - Fixed bug #40428 (imagepstext() doesn't accept optional parameter). (Pierre)
 - Fixed bug #40410 (ext/posix does not compile on MacOS 10.3.9). (Tony)
 - Fixed bug #40109 (iptcembed fails on non-jfif jpegs). (Tony)
index 73ecf1bd82e96b1fd7e82f2b0a29691e863e8e96..49755ef86821b4a4bd3344a266e7fb15a17df8d0 100644 (file)
@@ -276,7 +276,7 @@ static int php_make_safe_mode_command(char *cmd, char **safecmd, int is_persiste
 
        sep = zend_memrchr(arg0, PHP_DIR_SEPARATOR, larg0);
 
-       spprintf(safecmd, 0, "%s%c%s%s", PG(safe_mode_exec_dir), (sep ? *sep : '/'), (sep ? "" : arg0), (space ? cmd + larg0 : ""));
+       spprintf(safecmd, 0, "%s%s%s%s", PG(safe_mode_exec_dir), (sep ? sep : "/"), (sep ? "" : arg0), (space ? cmd + larg0 : ""));
 
        efree(arg0);
        arg0 = php_escape_shell_cmd(*safecmd);