diff options
-rw-r--r-- | ext/pdo_mysql/tests/bug71569.phpt | 2 | ||||
-rw-r--r-- | ext/standard/string.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/pdo_mysql/tests/bug71569.phpt b/ext/pdo_mysql/tests/bug71569.phpt index 3ace1e98bf..32c14b4622 100644 --- a/ext/pdo_mysql/tests/bug71569.phpt +++ b/ext/pdo_mysql/tests/bug71569.phpt @@ -1,5 +1,5 @@ --TEST-- -Bug #70389 (PDO constructor changes unrelated variables) +Bug #71569 (#70389 fix causes segmentation fault) --SKIPIF-- <?php require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'skipif.inc'); diff --git a/ext/standard/string.c b/ext/standard/string.c index 2dbe41ed5e..489006b261 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -4943,7 +4943,7 @@ PHPAPI size_t php_strip_tags_ex(char *rbuf, size_t len, int *stateptr, const cha * state == 2 (PHP). Switch back to HTML. */ - if (state == 2 && p > buf+2 && strncasecmp(p-4, "<?xm", 4) == 0) { + if (state == 2 && p > buf+4 && strncasecmp(p-4, "<?xm", 4) == 0) { state = 1; is_xml=1; break; } |