mirror of
https://github.com/php/php-src.git
synced 2025-01-27 14:13:41 +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) {
|
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z|l", &filename, &i) == FAILURE) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
convert_to_string(filename);
|
||||||
|
|
||||||
if (i) {
|
if (i) {
|
||||||
php_start_ob_buffer (NULL, 0 TSRMLS_CC);
|
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) {
|
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z|l", &expr, &i) == FAILURE) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
convert_to_string(expr);
|
||||||
|
|
||||||
if (i) {
|
if (i) {
|
||||||
php_start_ob_buffer (NULL, 0 TSRMLS_CC);
|
php_start_ob_buffer (NULL, 0 TSRMLS_CC);
|
||||||
|
Loading…
Reference in New Issue
Block a user