File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -1989,14 +1989,7 @@ PHP_FUNCTION(highlight_string)
1989
1989
1990
1990
hicompiled_string_description = zend_make_compiled_string_description ("highlighted code" );
1991
1991
1992
- if (highlight_string (expr , & syntax_highlighter_ini , hicompiled_string_description ) == FAILURE ) {
1993
- efree (hicompiled_string_description );
1994
- EG (error_reporting ) = old_error_reporting ;
1995
- if (i ) {
1996
- php_output_end ();
1997
- }
1998
- RETURN_FALSE ;
1999
- }
1992
+ highlight_string (expr , & syntax_highlighter_ini , hicompiled_string_description );
2000
1993
efree (hicompiled_string_description );
2001
1994
2002
1995
EG (error_reporting ) = old_error_reporting ;
@@ -2006,6 +1999,7 @@ PHP_FUNCTION(highlight_string)
2006
1999
php_output_discard ();
2007
2000
ZEND_ASSERT (Z_TYPE_P (return_value ) == IS_STRING );
2008
2001
} else {
2002
+ // TODO Make this function void?
2009
2003
RETURN_TRUE ;
2010
2004
}
2011
2005
}
You can’t perform that action at this time.
0 commit comments