]> granicus.if.org Git - php/commitdiff
- Fixed highlight_* (make it more robust)
authorDerick Rethans <derick@php.net>
Fri, 25 Jan 2002 15:43:58 +0000 (15:43 +0000)
committerDerick Rethans <derick@php.net>
Fri, 25 Jan 2002 15:43:58 +0000 (15:43 +0000)
#- Thx Mr S for noticing this.

ext/standard/basic_functions.c

index c7cbaca642a21733ac06393133f0225f41699bb2..88f1af93a8b7f209c3eccc3f7ecc1cab22ebfdd8 100644 (file)
@@ -1859,6 +1859,7 @@ PHP_FUNCTION(highlight_file)
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z|l", &filename, &i) == FAILURE) {
                return;
        }
+       convert_to_string(filename);
 
        if (i) {
                php_start_ob_buffer (NULL, 0 TSRMLS_CC);
@@ -1891,6 +1892,7 @@ PHP_FUNCTION(highlight_string)
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z|l", &expr, &i) == FAILURE) {
                return;
        }
+       convert_to_string(expr);
 
        if (i) {
                php_start_ob_buffer (NULL, 0 TSRMLS_CC);