]> granicus.if.org Git - php/commitdiff
*** empty log message ***
authorAndrey Hristov <andrey@php.net>
Fri, 4 Jun 1999 13:37:44 +0000 (13:37 +0000)
committerAndrey Hristov <andrey@php.net>
Fri, 4 Jun 1999 13:37:44 +0000 (13:37 +0000)
ext/pcre/pcre.c

index c2415853095e1a636dd2e9936a88b080cce7ccb7..f813681f59f89babc88c081dad5984539c14ec86 100644 (file)
@@ -694,6 +694,7 @@ static char *_php_replace_in_subject(zval *regex, zval *replace, zval *subject)
        }
        else {
                /* Make sure we're dealing with strings and do the replacement */
+               convert_to_string(regex);
                convert_to_string(replace);
                result = _php_pcre_replace(regex->value.str.val,
                                                                        subject->value.str.val,