<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/php-git.git/ext/tokenizer/tests, branch immutable-date</title>
<subtitle>git.php.net: repository/php-src.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/'/>
<entry>
<title>Fix test failed due to new Token T_YIELD</title>
<updated>2012-09-02T05:15:23+00:00</updated>
<author>
<name>Xinchen Hui</name>
<email>laruence@php.net</email>
</author>
<published>2012-09-02T05:15:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=4e84f725544153d5b6fff99adc274d11f79b9079'/>
<id>4e84f725544153d5b6fff99adc274d11f79b9079</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge remote-tracking branch 'php-src/master' into addGeneratorsSupport</title>
<updated>2012-08-20T11:37:53+00:00</updated>
<author>
<name>Nikita Popov</name>
<email>nikic@php.net</email>
</author>
<published>2012-08-20T11:37:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=1823b16fa15894f72fc01724766289dbecf5a62a'/>
<id>1823b16fa15894f72fc01724766289dbecf5a62a</id>
<content type='text'>
Merging master to fix Windows build

Conflicts:
	Zend/zend_language_scanner.c
	Zend/zend_language_scanner_defs.h
	Zend/zend_vm_def.h
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Merging master to fix Windows build

Conflicts:
	Zend/zend_language_scanner.c
	Zend/zend_language_scanner_defs.h
	Zend/zend_vm_def.h
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'pull-request/31'</title>
<updated>2012-08-20T04:43:04+00:00</updated>
<author>
<name>Stanislav Malyshev</name>
<email>stas@php.net</email>
</author>
<published>2012-08-20T04:42:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=3336e1e78c48cabf51c1a502ac84f20cd732981f'/>
<id>3336e1e78c48cabf51c1a502ac84f20cd732981f</id>
<content type='text'>
* pull-request/31:
  Fix lexing of nested heredoc strings in token_get_all()
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* pull-request/31:
  Fix lexing of nested heredoc strings in token_get_all()
</pre>
</div>
</content>
</entry>
<entry>
<title>Add T_YIELD in tokenizer_data.c</title>
<updated>2012-07-22T18:32:56+00:00</updated>
<author>
<name>Nikita Popov</name>
<email>nikic@php.net</email>
</author>
<published>2012-07-22T18:19:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=99f93dd9a846e3d615ec61c734aca2e7ee256600'/>
<id>99f93dd9a846e3d615ec61c734aca2e7ee256600</id>
<content type='text'>
Also had to fix up some tokenizer tests that were affected by the token
number changes.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also had to fix up some tokenizer tests that were affected by the token
number changes.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix lexing of nested heredoc strings in token_get_all()</title>
<updated>2012-03-31T19:53:30+00:00</updated>
<author>
<name>Nikita Popov</name>
<email>nikic@php.net</email>
</author>
<published>2012-03-30T18:41:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=4cf90e06c9834a52195384da760503ea055c726d'/>
<id>4cf90e06c9834a52195384da760503ea055c726d</id>
<content type='text'>
This fixes bug #60097.

Before two global variables CG(heredoc) and CG(heredoc_len) were used to
track the current heredoc label. In order to support nested heredoc
strings the *previous* heredoc label was assigned as the token value of
T_START_HEREDOC and the language_parser.y assigned that to CG(heredoc).

This created a dependency of the lexer on the parser. Thus the
token_get_all() function, which accesses the lexer directly without
also running the parser, was not able to tokenize nested heredoc strings
(and leaked memory). Same applies for the source-code highlighting
functions.

The new approach is to maintain a heredoc_label_stack in the lexer, which
contains all active heredoc labels.

As it is no longer required, T_START_HEREDOC and T_END_HEREDOC now don't
carry a token value anymore.

In order to make the work with zend_ptr_stack in this context more
convenient I added a new function zend_ptr_stack_top(), which retrieves the
top element of the stack (similar to zend_stack_top()).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fixes bug #60097.

Before two global variables CG(heredoc) and CG(heredoc_len) were used to
track the current heredoc label. In order to support nested heredoc
strings the *previous* heredoc label was assigned as the token value of
T_START_HEREDOC and the language_parser.y assigned that to CG(heredoc).

This created a dependency of the lexer on the parser. Thus the
token_get_all() function, which accesses the lexer directly without
also running the parser, was not able to tokenize nested heredoc strings
(and leaked memory). Same applies for the source-code highlighting
functions.

The new approach is to maintain a heredoc_label_stack in the lexer, which
contains all active heredoc labels.

As it is no longer required, T_START_HEREDOC and T_END_HEREDOC now don't
carry a token value anymore.

In order to make the work with zend_ptr_stack in this context more
convenient I added a new function zend_ptr_stack_top(), which retrieves the
top element of the stack (similar to zend_stack_top()).
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed bug #54084 (token_get_all with regards to __halt_compiler is not binary safe)</title>
<updated>2011-11-08T04:59:17+00:00</updated>
<author>
<name>Stanislav Malyshev</name>
<email>stas@php.net</email>
</author>
<published>2011-11-08T04:59:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=0d591e599f64df8e10f150bd2f87e4a403fcb1eb'/>
<id>0d591e599f64df8e10f150bd2f87e4a403fcb1eb</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Added __TRAIT__ magic constant [TRAITS] [DOC]</title>
<updated>2011-07-31T17:39:30+00:00</updated>
<author>
<name>Stefan Marr</name>
<email>gron@php.net</email>
</author>
<published>2011-07-31T17:39:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=dbc6849bca7b974acd8ded4dbf6973df5461d731'/>
<id>dbc6849bca7b974acd8ded4dbf6973df5461d731</id>
<content type='text'>
# __TRAIT__ behaves like __CLASS__ more or less but is constraint to traits.
# Since traits are not types, there are not many valid use cases, and trying
# to use __TRAIT__ to make traits more like classes is discouraged.

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
# __TRAIT__ behaves like __CLASS__ more or less but is constraint to traits.
# Since traits are not types, there are not many valid use cases, and trying
# to use __TRAIT__ to make traits more like classes is discouraged.

</pre>
</div>
</content>
</entry>
<entry>
<title>Added: SKIP when tokenizer extension is not available</title>
<updated>2011-07-31T16:35:09+00:00</updated>
<author>
<name>Stefan Marr</name>
<email>gron@php.net</email>
</author>
<published>2011-07-31T16:35:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=03f514d0a07dd66d7068df19f40cdf313560e3a9'/>
<id>03f514d0a07dd66d7068df19f40cdf313560e3a9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed bug #54089 (token_get_all() does not stop after __halt_compiler).</title>
<updated>2011-02-28T15:18:27+00:00</updated>
<author>
<name>Ilia Alshanetsky</name>
<email>iliaa@php.net</email>
</author>
<published>2011-02-28T15:18:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=1d984a7ffd60a36875e04cbc2d4bbf1d4b1524c8'/>
<id>1d984a7ffd60a36875e04cbc2d4bbf1d4b1524c8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed tests</title>
<updated>2010-05-24T18:52:36+00:00</updated>
<author>
<name>Ilia Alshanetsky</name>
<email>iliaa@php.net</email>
</author>
<published>2010-05-24T18:52:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=847f519d411ef4ef318c11bfdf00b74865728760'/>
<id>847f519d411ef4ef318c11bfdf00b74865728760</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
