Skip to content

Commit 6366679

Browse files
committed
Executed file can be NULL
So revert this part to what it was originally.
1 parent 2af19fb commit 6366679

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_exceptions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ static zend_object *zend_default_exception_new_ex(zend_class_entry *class_type,
207207
base_ce = i_get_exception_base(&obj);
208208

209209
if (EXPECTED(class_type != zend_ce_parse_error || !(filename = zend_get_compiled_filename()))) {
210-
zend_update_property_str(base_ce, &obj, "file", sizeof("file")-1, zend_get_executed_filename_ex());
210+
zend_update_property_string(base_ce, &obj, "file", sizeof("file")-1, zend_get_executed_filename());
211211
zend_update_property_long(base_ce, &obj, "line", sizeof("line")-1, zend_get_executed_lineno());
212212
} else {
213213
zend_update_property_str(base_ce, &obj, "file", sizeof("file")-1, filename);

0 commit comments

Comments
 (0)