[Zope-dev] Fw: Backporting for PHParser to Zope-2.3.3

Dirk Datzert Dirk.Datzert@rasselstein-hoesch.de
Thu, 25 Apr 2002 14:45:31 +0200


----- Original Message -----=20
From: "Dirk Datzert" <Dirk.Datzert@rasselstein-hoesch.de>
To: <maik.jablonski@uni-bielefeld.de>
Cc: <zope-dev@zopw.org>
Sent: Thursday, April 25, 2002 1:31 PM
Subject: Backporting for PHParser to Zope-2.3.3


Hi Maik,
hi all,

I want to backport PHParser to Zope-2.3.3 with Python 1.5.2.

I currently have the problem that the following code:

       (stin,stout)=3Dpopen2(PHPath)
         from zLOG import LOG, INFO
         LOG("PHPParser", INFO, "stin %s" %stin)
         LOG("PHPParser", INFO, "stout %s" %stout)
         stin.write('<?php $PHP_SELF=3D"%s"; ?>' % =
(self.absolute_url()))

will give error:

An error was encountered while publishing this resource.=20

Error Type: IOError
Error Value: [Errno 9] Bad file descriptor


>From the log:

2002-04-25T11:10:04 INFO(0) PHPParser stin <open file '(fdopen)', mode =
'r' at 8bff
e90>
------
2002-04-25T11:10:04 INFO(0) PHPParser stout <open file '(fdopen)', mode =
'w' at 8bf
dd20>

I would say that everything is OK in the code, but Zope/Python has an =
other opinion.

Has anybody a guess for me ?

Thanks,
Dirk