- Fixed highlight_* (make it more robust)

#- Thx Mr S for noticing this.
This commit is contained in:
Derick Rethans 2002-01-25 15:43:58 +00:00
parent 58749ec3a4
commit 33b66a224b

View 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);