Skip to content

Commit a7e9a57

Browse files
Tweaks and improvements
1 parent fd43d58 commit a7e9a57

File tree

4 files changed

+4
-16
lines changed

4 files changed

+4
-16
lines changed

Diff for: Zend/tests/attributes/constants/named_parameter_validation.phpt

-14
This file was deleted.

Diff for: Zend/tests/attributes/deprecated/constants/error_code.phpt

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ set_error_handler(function (int $errno, string $errstr, ?string $errfile = null,
88
});
99

1010
#[\Deprecated]
11-
const Example = 5;
11+
const EXAMPLE = 5;
1212

13-
Example;
13+
EXAMPLE;
1414

1515
?>
1616
--EXPECT--

Diff for: Zend/zend_vm_def.h

+1
Original file line numberDiff line numberDiff line change
@@ -8283,6 +8283,7 @@ ZEND_VM_HANDLER(210, ZEND_DECLARE_ATTRIBUTED_CONST, CONST, CONST)
82838283

82848284
HashTable *attributes = Z_PTR_P(GET_OP_DATA_ZVAL_PTR(BP_VAR_R));
82858285
zend_constant *registered = zend_get_constant_ptr(c.name);
8286+
ZEND_ASSERT(attributes != NULL);
82868287
ZEND_ASSERT(registered != NULL);
82878288
zend_constant_add_attributes(registered, attributes);
82888289

Diff for: Zend/zend_vm_execute.h

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)