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

2008-03-17 Thread Steph Fox

Nevermind, I fixed it.


yes... but given that mine worked in the first place, the question is 
whether your (and Scott's) fixes will work here, which means I now need to 
check out 5_3 and try again. Sorry, it's going to have to be after I 
finish 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 box 
following today's changes (i.e. re2c generates files that are not empty, the 
resulting 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



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

2008-03-17 Thread Steph Fox

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 they 
usually say something about it somewhere, so I'll assume not in in this 
case. I just asked because the path was listed as C:\cygwin\bin\re2c.exe in 
your original post.


I downloaded re2c.exe from sourceforge release, did checkput of 5.3, 
buildconf and configure. Since configure now produces RE2C_FLAGS=null in 
makefile, 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 is 
whether your (and Scott's) fixes will work here, which means I now need to 
check out 5_3 and try again. Sorry, it's going to have to be after I finish 
work 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



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

2008-03-17 Thread Stanislav Malyshev

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=null 
in 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
[EMAIL PROTECTED]   http://www.zend.com/
(408)253-8829   MSN: [EMAIL PROTECTED]

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



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

2008-03-17 Thread Steph Fox
Interesting. I did a clean checkout when Stas' message came through and 
can'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 sourceforge 
release, did checkput of 5.3, buildconf and configure. Since configure 
now produces RE2C_FLAGS=null in makefile, build failed. After removing 
that 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



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

2008-03-17 Thread Stanislav Malyshev
Interesting. I did a clean checkout when Stas' message came through and 
can't reproduce the problem here.


Stas, is yours a cygwin-reliant exe?


Erm, not sure what you mean here. I downloaded re2c.exe from sourceforge 
release, did checkput of 5.3, buildconf and configure. Since configure 
now produces RE2C_FLAGS=null in makefile, build failed. After removing 
that line, build worked.

--
Stanislav Malyshev, Zend Software Architect
[EMAIL PROTECTED]   http://www.zend.com/
(408)253-8829   MSN: [EMAIL PROTECTED]

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



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

2008-03-17 Thread Steph Fox
Interesting. I did a clean checkout when Stas' message came through and 
can't reproduce the problem here.


Stas, is yours a cygwin-reliant exe?

- Steph


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 -cbdFt 
Zend\zend_ini_scanner_defs.h -oZend/zend_ini_scanner.c 
Zend\zend_ini_scanner.l

usage: re2c [-bcdDefFghisvVw1] [-o file] 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 this 
definition as empty, another error happens:


"\cygwin\bin\re2c.exe"  --case-inverted -cbdFt 
Zend\zend_ini_scanner_defs.h -oZend/zend_ini_scanner.c 
Zend\zend_ini_scanner.l
"\cygwin\bin\re2c.exe"  --case-inverted -cbdFt 
/zend_language_scanner_defs.h -oZend\zend_language_scanner.c 
/zend_language_scanner.l

re2c: 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



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

2008-03-17 Thread Stanislav Malyshev

It should be fixed now.


First issue is still there (now it does RE2CFLAGS=null) but the second 
one is gone.

--
Stanislav Malyshev, Zend Software Architect
[EMAIL PROTECTED]   http://www.zend.com/
(408)253-8829   MSN: [EMAIL PROTECTED]

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



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

2008-03-17 Thread Scott MacVicar

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 -cbdFt 
Zend\zend_ini_scanner_defs.h -oZend/zend_ini_scanner.c 
Zend\zend_ini_scanner.l

usage: re2c [-bcdDefFghisvVw1] [-o file] 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 this 
definition as empty, another error happens:


"\cygwin\bin\re2c.exe"  --case-inverted -cbdFt 
Zend\zend_ini_scanner_defs.h -oZend/zend_ini_scanner.c 
Zend\zend_ini_scanner.l
"\cygwin\bin\re2c.exe"  --case-inverted -cbdFt 
/zend_language_scanner_defs.h -oZend\zend_language_scanner.c 
/zend_language_scanner.l

re2c: 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



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

2008-03-17 Thread Stanislav Malyshev

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 -cbdFt 
Zend\zend_ini_scanner_defs.h -oZend/zend_ini_scanner.c 
Zend\zend_ini_scanner.l

usage: re2c [-bcdDefFghisvVw1] [-o file] 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 this 
definition as empty, another error happens:


"\cygwin\bin\re2c.exe"  --case-inverted -cbdFt 
Zend\zend_ini_scanner_defs.h -oZend/zend_ini_scanner.c 
Zend\zend_ini_scanner.l
"\cygwin\bin\re2c.exe"  --case-inverted -cbdFt 
/zend_language_scanner_defs.h -oZend\zend_language_scanner.c 
/zend_language_scanner.l

re2c: 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
[EMAIL PROTECTED]   http://www.zend.com/
(408)253-8829   MSN: [EMAIL PROTECTED]

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



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

2008-03-16 Thread Marcus Boerger
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.txt

In case you like to get more involved:
http://blog.somabo.de/2008/02/php-on-re2c.html

Care 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