]> granicus.if.org Git - php/commit
Revert "Revert "Improve and generalize class constant substitution""
authorBob Weinand <bobwei9@hotmail.com>
Tue, 10 Feb 2015 14:43:23 +0000 (15:43 +0100)
committerBob Weinand <bobwei9@hotmail.com>
Tue, 10 Feb 2015 14:47:17 +0000 (15:47 +0100)
commit830d3d79b3744db021f2183857c5a625e96c6315
tree91c21b780a676263c030193003096ffd9e9bbff6
parent6c9d75b44d559f9d35fba01b1f6eb16aef4c23b1
Revert "Revert "Improve and generalize class constant substitution""

This reverts commit 400e65e955f08ad6ae57c1a15be04d5852107252.

Removing ReflectionParameter::getDefaultValueConstantName() and isDefaultValueConstant()
They become useless with such optimizations and already anyway are (e.g. CONSTANT?:CONSTANT ... yields the constant back without telling isDefaultValueConstant() about it etc.)
Zend/zend_compile.c
ext/reflection/php_reflection.c
ext/reflection/tests/ReflectionParameter_DefaultValue.phpt [new file with mode: 0644]
ext/reflection/tests/ReflectionParameter_DefaultValueConstant_basic1.phpt [deleted file]
ext/reflection/tests/ReflectionParameter_DefaultValueConstant_basic2.phpt [deleted file]
ext/reflection/tests/ReflectionParameter_DefaultValueConstant_error.phpt [deleted file]