----- Original Message ----- From: "Dirk Datzert" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> 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)=popen2(PHPath) from zLOG import LOG, INFO LOG("PHPParser", INFO, "stin %s" %stin) LOG("PHPParser", INFO, "stout %s" %stout) stin.write('<?php $PHP_SELF="%s"; ?>' % (self.absolute_url())) will give error: An error was encountered while publishing this resource. 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 _______________________________________________ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )