Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » PHP
  • » [PHP-DEV] [ANNOUNCE] Scanner to be based on re2c [RSS Feed]

#1 March 16, 2008 22:30:41

Marcus B.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[PHP-DEV] [ANNOUNCE] Scanner to be based on re2c


Hello Internals,

as of today PHP 5.3 uses a scanner based on re2c >= 0.13.3 (latest dev
version) instead of the outdated flex version we required so far. This in
particular means:

a) You need to get re2c 0.13.3 - when working on the language/ini scanner

b) You no longer need flex to build PHP 5.3

c) HEAD does not yet use re2c, this will be done withint the next days

d) ATM --enable-zend-multibyte is not supported - We will add the
functionality without the need for the switch within the next weeks

e) You need to run ./buildconf next time you do a cvs checkout of PHP_5_3

In case you are interested at a full patch:http://php.net/~helly/php-re2c-5.3-20080316.diff.txtIn case you like to get more involved:http://blog.somabo.de/2008/02/php-on-re2c.htmlCare to help?

Write tests that use --enable-zend-multibyte or define how multibyte
support should work.

Best regards,
Marcus, Scott, Nuno



--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit:http://www.php.net/unsub.php

Offline

#2 March 17, 2008 17:46:45

Stanislav M.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[PHP-DEV] [ANNOUNCE] Scanner to be based on re2c


Hi!

Windows build is broken right now. When trying to build, I get:\cygwin\bin\bison.exe --output=Zend/zend_ini_parser.c -v -d -p ini_Zend/zend_ini_parser.y"\cygwin\bin\re2c.exe" "" --case-inverted -cbdFtZend\zend_ini_scanner_defs.h -oZend/zend_ini_scanner.cZend\zend_ini_scanner.lusage: re2c file

-? -h --help Display this info.
etc. all the help of re2c
NMAKE : fatal error U1077: '\cygwin\bin\re2c.exe' : return code '0x2'
Stop.This seems to be because of RE2C_FLAGS defined as "". If I set thisdefinition as empty, another error happens:"\cygwin\bin\re2c.exe" --case-inverted -cbdFtZend\zend_ini_scanner_defs.h -oZend/zend_ini_scanner.cZend\zend_ini_scanner.l"\cygwin\bin\re2c.exe" --case-inverted -cbdFt/zend_language_scanner_defs.h -oZend\zend_language_scanner.c/zend_language_scanner.lre2c: error: cannot open /zend_language_scanner.l
NMAKE : fatal error U1077: '\cygwin\bin\re2c.exe' : return code '0x1'
Stop.

Please fix both.
--
Stanislav Malyshev, Zend Software Architect
http://www.zend.com/(408)253-8829 MSN:

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit:http://www.php.net/unsub.php

Offline

#3 March 17, 2008 18:09:23

Scott M.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[PHP-DEV] [ANNOUNCE] Scanner to be based on re2c


It should be fixed now.

Scott

Stanislav Malyshev wrote:Hi!

Windows build is broken right now. When trying to build, I get:\cygwin\bin\bison.exe --output=Zend/zend_ini_parser.c -v -d -p ini_Zend/zend_ini_parser.y"\cygwin\bin\re2c.exe" "" --case-inverted -cbdFtZend\zend_ini_scanner_defs.h -oZend/zend_ini_scanner.cZend\zend_ini_scanner.lusage: re2c file

-? -h --help Display this info.
etc. all the help of re2c
NMAKE : fatal error U1077: '\cygwin\bin\re2c.exe' : return code '0x2'
Stop.This seems to be because of RE2C_FLAGS defined as "". If I set thisdefinition as empty, another error happens:"\cygwin\bin\re2c.exe" --case-inverted -cbdFtZend\zend_ini_scanner_defs.h -oZend/zend_ini_scanner.cZend\zend_ini_scanner.l"\cygwin\bin\re2c.exe" --case-inverted -cbdFt/zend_language_scanner_defs.h -oZend\zend_language_scanner.c/zend_language_scanner.lre2c: error: cannot open /zend_language_scanner.l
NMAKE : fatal error U1077: '\cygwin\bin\re2c.exe' : return code '0x1'
Stop.

Please fix both.--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit:http://www.php.net/unsub.php

Offline

#4 March 17, 2008 18:12:38

Stanislav M.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[PHP-DEV] [ANNOUNCE] Scanner to be based on re2c


It should be fixed now.First issue is still there (now it does RE2CFLAGS=null) but the secondone is gone.--
Stanislav Malyshev, Zend Software Architect
http://www.zend.com/(408)253-8829 MSN:

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit:http://www.php.net/unsub.php

Offline

#5 March 17, 2008 18:19:51

Steph F.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[PHP-DEV] [ANNOUNCE] Scanner to be based on re2c


Interesting. I did a clean checkout when Stas' message came through andcan't reproduce the problem here.Stas, is yours a cygwin-reliant exe?

- StephIt should be fixed now.

Scott

Stanislav Malyshev wrote:Hi!

Windows build is broken right now. When trying to build, I get:\cygwin\bin\bison.exe --output=Zend/zend_ini_parser.c -v -d -p ini_Zend/zend_ini_parser.y"\cygwin\bin\re2c.exe" "" --case-inverted -cbdFtZend\zend_ini_scanner_defs.h -oZend/zend_ini_scanner.cZend\zend_ini_scanner.lusage: re2c file

-? -h --help Display this info.
etc. all the help of re2c
NMAKE : fatal error U1077: '\cygwin\bin\re2c.exe' : return code '0x2'
Stop.This seems to be because of RE2C_FLAGS defined as "". If I set thisdefinition as empty, another error happens:"\cygwin\bin\re2c.exe" --case-inverted -cbdFtZend\zend_ini_scanner_defs.h -oZend/zend_ini_scanner.cZend\zend_ini_scanner.l"\cygwin\bin\re2c.exe" --case-inverted -cbdFt/zend_language_scanner_defs.h -oZend\zend_language_scanner.c/zend_language_scanner.lre2c: error: cannot open /zend_language_scanner.l
NMAKE : fatal error U1077: '\cygwin\bin\re2c.exe' : return code '0x1'
Stop.

Please fix both.--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit:http://www.php.net/unsub.php--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit:http://www.php.net/unsub.php

Offline

#6 March 17, 2008 18:22:43

Stanislav M.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[PHP-DEV] [ANNOUNCE] Scanner to be based on re2c


Interesting. I did a clean checkout when Stas' message came through andcan't reproduce the problem here.Stas, is yours a cygwin-reliant exe?Erm, not sure what you mean here. I downloaded re2c.exe from sourceforgerelease, did checkput of 5.3, buildconf and configure. Since configurenow produces RE2C_FLAGS=null in makefile, build failed. After removingthat line, build worked.--
Stanislav Malyshev, Zend Software Architect
http://www.zend.com/(408)253-8829 MSN:

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit:http://www.php.net/unsub.php

Offline

#7 March 17, 2008 18:31:27

Steph F.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[PHP-DEV] [ANNOUNCE] Scanner to be based on re2c


Interesting. I did a clean checkout when Stas' message came through andcan't reproduce the problem here.Stas, is yours a cygwin-reliant exe?Erm, not sure what you mean here.I meant 'does it rely on cygwin1.dll or is it native'?I downloaded re2c.exe from sourceforgerelease, did checkput of 5.3, buildconf and configure. Since configurenow produces RE2C_FLAGS=null in makefile, build failed. After removingthat line, build worked.Mine worked from scratch... I'm not sure which is weirder :)

- Steph

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit:http://www.php.net/unsub.php

Offline

#8 March 17, 2008 18:34:50

Stanislav M.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[PHP-DEV] [ANNOUNCE] Scanner to be based on re2c


I meant 'does it rely on cygwin1.dll or is it native'?No idea, whatever the person who put it on sourceforge built.I downloaded re2c.exe from sourceforge release, did checkput of 5.3,buildconf and configure. Since configure now produces RE2C_FLAGS=nullin makefile, build failed. After removing that line, build worked.Mine worked from scratch... I'm not sure which is weirder :)Nevermind, I fixed it.
--
Stanislav Malyshev, Zend Software Architect
http://www.zend.com/(408)253-8829 MSN:

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit:http://www.php.net/unsub.php

Offline

#9 March 17, 2008 18:41:49

Steph F.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[PHP-DEV] [ANNOUNCE] Scanner to be based on re2c


Hi Stas,I meant 'does it rely on cygwin1.dll or is it native'?No idea, whatever the person who put it on sourceforge built.If people are distributing binaries that rely on the cygwin runtime theyusually say something about it somewhere, so I'll assume not in in thiscase. I just asked because the path was listed as C:\cygwin\bin\re2c.exe inyour original post.I downloaded re2c.exe from sourceforge release, did checkput of 5.3,buildconf and configure. Since configure now produces RE2C_FLAGS=null inmakefile, build failed. After removing that line, build worked.Mine worked from scratch... I'm not sure which is weirder :)Nevermind, I fixed it.yes... but given that mine worked in the first place, the question iswhether your (and Scott's) fixes will work here, which means I now need tocheck out 5_3 and try again. Sorry, it's going to have to be after I finishwork for the day, taken up too much time already.- Steph--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit:http://www.php.net/unsub.php

Offline

#10 March 17, 2008 23:41:01

Steph F.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[PHP-DEV] [ANNOUNCE] Scanner to be based on re2c


Nevermind, I fixed it.yes... but given that mine worked in the first place, the question iswhether your (and Scott's) fixes will work here, which means I now need tocheck out 5_3 and try again. Sorry, it's going to have to be after Ifinish work for the day, taken up too much time already.*talking to myself... again*Just confirming that the build still appears to work fine on my boxfollowing today's changes (i.e. re2c generates files that are not empty, theresulting PHP binary returns version info on request etc etc).So you didn't break it :)- Steph--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit:http://www.php.net/unsub.php

Offline

  • Root
  • » PHP
  • » [PHP-DEV] [ANNOUNCE] Scanner to be based on re2c [RSS Feed]

Board footer

Moderator control

Enjoy the 11th of December
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support