@@ -103,20 +103,20 @@ static size_t (*php_output_direct)(const char *str, size_t str_len) = php_output
103
103
static void php_output_header (void )
104
104
{
105
105
if (!SG (headers_sent )) {
106
- if (!OG (output_start_filename_str )) {
106
+ if (!OG (output_start_filename )) {
107
107
if (zend_is_compiling ()) {
108
- OG (output_start_filename_str ) = zend_get_compiled_filename ();
108
+ OG (output_start_filename ) = zend_get_compiled_filename ();
109
109
OG (output_start_lineno ) = zend_get_compiled_lineno ();
110
110
} else if (zend_is_executing ()) {
111
- OG (output_start_filename_str ) = zend_get_executed_filename_ex ();
111
+ OG (output_start_filename ) = zend_get_executed_filename_ex ();
112
112
OG (output_start_lineno ) = zend_get_executed_lineno ();
113
113
}
114
- if (OG (output_start_filename_str )) {
115
- zend_string_addref (OG (output_start_filename_str ));
114
+ if (OG (output_start_filename )) {
115
+ zend_string_addref (OG (output_start_filename ));
116
116
}
117
117
#if PHP_OUTPUT_DEBUG
118
118
fprintf (stderr , "!!! output started at: %s (%d)\n" ,
119
- ZSTR_VAL (OG (output_start_filename_str )), OG (output_start_lineno ));
119
+ ZSTR_VAL (OG (output_start_filename )), OG (output_start_lineno ));
120
120
#endif
121
121
}
122
122
if (!php_header ()) {
@@ -195,9 +195,9 @@ PHPAPI void php_output_deactivate(void)
195
195
zend_stack_destroy (& OG (handlers ));
196
196
}
197
197
198
- if (OG (output_start_filename_str )) {
199
- zend_string_release (OG (output_start_filename_str ));
200
- OG (output_start_filename_str ) = NULL ;
198
+ if (OG (output_start_filename )) {
199
+ zend_string_release (OG (output_start_filename ));
200
+ OG (output_start_filename ) = NULL ;
201
201
}
202
202
}
203
203
/* }}} */
@@ -758,7 +758,7 @@ PHPAPI void php_output_set_implicit_flush(int flush)
758
758
* Get the file name where output has started */
759
759
PHPAPI const char * php_output_get_start_filename (void )
760
760
{
761
- return ZSTR_VAL (OG (output_start_filename_str ));
761
+ return ZSTR_VAL (OG (output_start_filename ));
762
762
}
763
763
/* }}} */
764
764
0 commit comments