History log of /PHP-7.1/Zend/zend_compile.c (Results 251 – 275 of 1956)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 3cbe3903 22-May-2015 Nikita Popov

Move loop var stack management into begin/end loop

Also set start to -1 in begin_loop already, so the info that a
loop variable is not used is already available at compile-time.


# d0e26539 22-May-2015 Nikita Popov

Drop FREE_ON_RETURN flag, check brk_cont->start instead

Start >= 0 already tells us whether or not the loop has a loop
variable, no need to add extra flags to opcodes.

Also adde

Drop FREE_ON_RETURN flag, check brk_cont->start instead

Start >= 0 already tells us whether or not the loop has a loop
variable, no need to add extra flags to opcodes.

Also added a test for a case where FREE_ON_RETURN is relevant,
we didn't seem to have any coverage for this.

show more ...


# 3dba00bc 21-May-2015 Nikita Popov

Fix scope_is_known() for class constants

Here the active_op_array is still the surrounding file, but we
do know the scope.


Revision tags: php-5.5.25, php-5.6.9
# d72a9446 13-May-2015 Dmitry Stogov

Merged FE_FETCH_R[W] with the following ASSIGN[_REF] when assigne to CV.


Revision tags: php-5.4.41
# 6ef8ae65 07-May-2015 Nikita Popov

Allow self etc in eval / file scope

This fixes a regression from 16a9bc1ec20533c76ba992bfc64dd69e7b7d9001.
Together with the recent closure related changes this should allow
all usag

Allow self etc in eval / file scope

This fixes a regression from 16a9bc1ec20533c76ba992bfc64dd69e7b7d9001.
Together with the recent closure related changes this should allow
all usages of self etc, while previously (in PHP 5) some things like
self::class did not work.

show more ...


# ab97606b 05-May-2015 Nikita Popov

Fix compiler assumptions about self/etc wrt closures

* Don't throw an error if self/parent/static are used in a closure
(outside a class).
* Don't propagate self:: constants into c

Fix compiler assumptions about self/etc wrt closures

* Don't throw an error if self/parent/static are used in a closure
(outside a class).
* Don't propagate self:: constants into closures
* Use runtime fetch for self::class in closures

Fixes bug #66811.

show more ...


# dd1fdfb1 05-May-2015 Nikita Popov

Use ZEND_FETCH_CLASS_NAME for dynamic self::class etc

Extend the opcode to support getting the parent and static name and
then use it for dynamic ::class resolution.


# 9708378d 03-May-2015 John Boehr

Fix uninitialized value with extension traits


# 56fdae90 03-May-2015 John Boehr

Fix uninitialized value with extension traits


Revision tags: php-5.6.9RC1, php-5.5.25RC1, php-5.6.8, php-5.5.24, php-5.4.40
# 11075938 05-Apr-2015 Márcio Almada

ext tokenizer port + cleanup unused lexer states

we basically added a mechanism to store the token stream during parsing
and exposed the entire parser stack on the tokenizer extension th

ext tokenizer port + cleanup unused lexer states

we basically added a mechanism to store the token stream during parsing
and exposed the entire parser stack on the tokenizer extension through
an opt in flag: token_get_all($src, TOKEN_PARSE).

this change allows easy future language enhancements regarding context
aware parsing & scanning without further maintance on the tokenizer
extension while solves known inconsistencies "parseless" tokenizer
extension has when it handles `__halt_compiler()` presence.

show more ...


# 16a9bc1e 27-Apr-2015 Nikita Popov

Disallow self etc outside classes at compile-time

Also fix a bug with return types where "self" was rejected inside
a class, but not on a method.

Fallout: A couple of tests chan

Disallow self etc outside classes at compile-time

Also fix a bug with return types where "self" was rejected inside
a class, but not on a method.

Fallout: A couple of tests changed to more generic error messages.

show more ...


# 33e32cbe 28-Apr-2015 Xinchen Hui

Make it inline


# 422de8a7 27-Apr-2015 Nikita Popov

Drop compile_class_decl return value

Was introduced for anon classes, but no longer needed.


# 8acd7f49 27-Apr-2015 Dmitry Stogov

Pass class_entry through IS_VAR to avoid hash lookup in ZEND_NEW.


# 2a1b0b11 27-Apr-2015 Dmitry Stogov

Use "safe" anonymous class names. Don't show the mangled names through var_dump().


# 94245bc1 27-Apr-2015 Dmitry Stogov

Refactored using specialized opcodes


# 83618934 26-Apr-2015 Nikita Popov

Fix implementing_class handling


# f2f890a2 26-Apr-2015 Nikita Popov

More cleanup (mainly retab)


# 03d7042d 26-Apr-2015 Nikita Popov

Don't issue FETCH_CLASS for anon classes


# 929fdc1c 26-Apr-2015 Nikita Popov

More retab


# 4a7061b0 26-Apr-2015 Nikita Popov

Simply anon class name generation

Drop dead "parent" code


# f16eca58 26-Apr-2015 Nikita Popov

Retab


# 9a1797d4 26-Apr-2015 Nikita Popov

Revert unrelated changes / rebase fixup


# 49608e06 26-Apr-2015 krakjoe

Rebase Joe's anon classes implementation


# 75b4fa07 25-Apr-2015 Nikita Popov

Fix bug #69532

Partial revert of ea2fc7f935d2767c127756647f47be8d420346ce.


1...<<11121314151617181920>>...79