patch-fd-lexer

php.internals

Sascha Schumann

23 years ago
Hi, this is an updated version of the no-stdio patch. It now features consequent socket support. Earlier PHP versions use a temporary file in that case on Win32 which might fail for various reasons and requires additional configuration (e.g. the temp path must exist and so on). http://php.net/~sas/patch-fd-lexer Your feedback is appreciated. - Sascha

Sascha Schumann

23 years ago
http://php.net/~sas/patch-fd-lexer2 The other file contained some unrelated chunks which have been separately committed. - Sascha

Edin Kadribasic

23 years ago
On Tue, 6 May 2003, Sascha Schumann wrote:
> http://php.net/~sas/patch-fd-lexer2 > > The other file contained some unrelated chunks which have > been separately committed.
With a small fix it compiles and appears to work on win32. The fix is in Zend/flex.skl: /* for HAVE_* */ #ifdef ZEND_WIN32 #include "zend_config.w32.h" #else #include "zend_config.h" #endif I have tested cli with
>php -r "include 'http://go-pear.org/';"
Edin

Sascha Schumann

23 years ago
On Tue, 6 May 2003, Edin Kadribasic wrote:
> On Tue, 6 May 2003, Sascha Schumann wrote: > > > http://php.net/~sas/patch-fd-lexer2 > > > > The other file contained some unrelated chunks which have > > been separately committed. > > With a small fix it compiles and appears to work on win32. The fix is in > Zend/flex.skl:
Thanks, I had been testing with cygwin only so far. I'll incorporate that into the next update. - Sascha

Sascha Schumann

23 years ago
http://schumann.cx/patch-fd-lexer4 changes over version 2: - zend.h is included, so that we get access to the right set of HAVE_* - TSRMLS_* preprocessor macros were dropped, because they conflicted with TSRM.h - closesocket is used on Win32 for closing sockets - the INI system uses zend_file_handle_dtor, so we don't need to maintain two implementations of the same function - Sascha

Edin Kadribasic

23 years ago
On Tue, 6 May 2003, Sascha Schumann wrote:
> http://schumann.cx/patch-fd-lexer4 > > changes over version 2: > > - zend.h is included, so that we get access to the right set > of HAVE_* > > - TSRMLS_* preprocessor macros were dropped, because they > conflicted with TSRM.h > > - closesocket is used on Win32 for closing sockets > > - the INI system uses zend_file_handle_dtor, so we don't need > to maintain two implementations of the same function
Compiles on win32 out of the box now. A few benign warnings: zend_ini_scanner.c(1221) : warning C4013: 'read' undefined; assuming extern returning int zend_language_scanner.l(200) : warning C4013: 'close' undefined; assuming extern returning int zend_language_scanner.c(5398) : warning C4013: 'read' undefined; assuming extern returning int Edin