diff options
| author | Derick Rethans <derick@php.net> | 2002-01-25 15:43:58 +0000 |
|---|---|---|
| committer | Derick Rethans <derick@php.net> | 2002-01-25 15:43:58 +0000 |
| commit | 33b66a224b466d17c83f661dfad1f73a125d8a85 (patch) | |
| tree | 28c8a5d3acd0e4ad12127cd74f1fcf9c3be6daca /ext/standard/basic_functions.c | |
| parent | 58749ec3a41eb4f1bde8ea2bda7a2a564f0cf6fe (diff) | |
| download | php-git-33b66a224b466d17c83f661dfad1f73a125d8a85.tar.gz | |
- Fixed highlight_* (make it more robust)
#- Thx Mr S for noticing this.
Diffstat (limited to 'ext/standard/basic_functions.c')
| -rw-r--r-- | ext/standard/basic_functions.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index c7cbaca642..88f1af93a8 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); |
