mirror of
https://github.com/php/php-src.git
synced 2025-01-26 21:54:16 +08:00
- Fixed highlight_* (make it more robust)
#- Thx Mr S for noticing this.
This commit is contained in:
parent
58749ec3a4
commit
33b66a224b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user