From 33b66a224b466d17c83f661dfad1f73a125d8a85 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Fri, 25 Jan 2002 15:43:58 +0000 Subject: [PATCH] - Fixed highlight_* (make it more robust) #- Thx Mr S for noticing this. --- ext/standard/basic_functions.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index c7cbaca642a..88f1af93a8b 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -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);