# Update on the lexer-no-stdio patch

- Thread: https://externals.io/message/1277
- Original archive: https://news-web.php.net/php.internals/1277
- Started by Sascha Schumann on 2003-05-05T22:36:35+00:00
- Messages: 5
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #1277 — Sascha Schumann — 2003-05-05T22:36:35+00:00

URL: https://externals.io/message/1277#1277

Hi there,

    the patch[1] which eliminates use of stdio in the script
    lexer has been successfully running on php.net for half a day
    now.

    I'd still love to hear from Win32 experts whether there is a
    specific reason why Win32 could not simply use POSIX IO
    (open(), read()) instead of stdio on that platform.

    [1] http://www.php.net/~sas/patch-lexer-no-stdio

    Thanks
    - Sascha

---

## #1278 — Jay Smith — 2003-05-05T22:46:55+00:00

URL: https://externals.io/message/1277#1278 · In reply to: #1277

I applied the patch about an hour ago to an iPlanet server. We'll see how it
fares over next couple of days. It doesn't get much traffic, so I'll
probably run some ab tests tomorrow...

J

Sascha Schumann wrote:

>     Hi there,
> 
>     the patch[1] which eliminates use of stdio in the script
>     lexer has been successfully running on php.net for half a day
>     now.
> 
>     I'd still love to hear from Win32 experts whether there is a
>     specific reason why Win32 could not simply use POSIX IO
>     (open(), read()) instead of stdio on that platform.
> 
>     [1] http://www.php.net/~sas/patch-lexer-no-stdio
> 
>     Thanks
>     - Sascha

---

## #1279 — Uwe Schindler — 2003-05-05T22:52:21+00:00

URL: https://externals.io/message/1277#1279 · In reply to: #1277

The patch now runs 5 days on my heavy loaded iPlanet Server without sfio 
and no problems occur.

At 18:46 05.05.2003 -0400, you wrote:

>I applied the patch about an hour ago to an iPlanet server. We'll see how it
>fares over next couple of days. It doesn't get much traffic, so I'll
>probably run some ab tests tomorrow...
>
>J
>
>Sascha Schumann wrote:
>
> > […]
>
>
>--
>
>

-----
Uwe Schindler
Addr 1: Bamberger Str. 24a, D-96049 Bamberg
Addr 2: Drausnickstr. 153, D-91052 Erlangen
http://www.thetaphi.de - http:///www.schindlers-software.de
eMails: uwe@thetaphi.de (private); info@schindlers-software.de (company)
Tel./Fax: +49 700 PCLATEIN (+49 700 72528346)

Schindlers Software - Home of Schindlers PC-LATEIN 3.10
DIE Software zum Lateinlernen!

---

## #1284 — Zeev Suraski — 2003-05-06T07:55:50+00:00

URL: https://externals.io/message/1277#1284 · In reply to: #1277

At 01:36 06/05/2003, Sascha Schumann wrote:
>     Hi there,
>
>     the patch[1] which eliminates use of stdio in the script
>     lexer has been successfully running on php.net for half a day
>     now.
>
>     I'd still love to hear from Win32 experts whether there is a
>     specific reason why Win32 could not simply use POSIX IO
>     (open(), read()) instead of stdio on that platform.

The problem with POSIX IO under Windows is generally that it's a bit of a 
'bastard child'.  It works, but it shows some anomalies in certain 
situations.  I *think* that if we limit ourselves to just simple read()'s, 
we should do fine.  The problem start pouring in when you try some more 
complex stuff like fdopen(), use sockets, etc.

You mentioned that URL includes are not working to begin with - did you 
refer to Solaris specifically or are they broken altogether?  If they're 
broken altogether it sounds like a pretty nasty bug, doesn't it, Jani..?

Zeev

---

## #1285 — Uwe Schindler — 2003-05-06T08:47:04+00:00

URL: https://externals.io/message/1277#1285 · In reply to: #1277

Our intention is not to use any things like fdopen(), `fopen()` because this 
two commands do not work correctly under solaris. We want pure POSIX.

At 10:55 06.05.2003 +0300, you wrote:
>At 01:36 06/05/2003, Sascha Schumann wrote:
> > […]
>
>The problem with POSIX IO under Windows is generally that it's a bit of a 
>'bastard child'.  It works, but it shows some anomalies in certain 
>situations.  I *think* that if we limit ourselves to just simple read()'s, 
>we should do fine.  The problem start pouring in when you try some more 
>complex stuff like fdopen(), use sockets, etc.
>
>You mentioned that URL includes are not working to begin with - did you 
>refer to Solaris specifically or are they broken altogether?  If they're 
>broken altogether it sounds like a pretty nasty bug, doesn't it, Jani..?
>
>Zeev
>
>
>--
>
>

-----
Uwe Schindler
Addr 1: Bamberger Str. 24a, D-96049 Bamberg
Addr 2: Drausnickstr. 153, D-91052 Erlangen
http://www.thetaphi.de - http:///www.schindlers-software.de
eMails: uwe@thetaphi.de (private); info@schindlers-software.de (company)
Tel./Fax: +49 700 PCLATEIN (+49 700 72528346)

Schindlers Software - Home of Schindlers PC-LATEIN 3.10
DIE Software zum Lateinlernen!
