Skip Menu |

This queue is for tickets about the PHP-Interpreter CPAN distribution.

Report information
The Basics
Id: 20700
Status: new
Priority: 0/
Queue: PHP-Interpreter

Owner: Nobody in particular
Requestors: derek [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

X-Scanned-BY: AMaViS-ng at bestpractical
MIME-Version: 1.0
X-Spam-Status: No, hits=-2.6 required=8.0 tests=BAYES_00,DK_POLICY_SIGNSOME
Received-SPF: unknown ( error in processing during lookup of derek [...]
content-type: text/plain; charset="utf-8"
Received: from localhost ( []) by (Postfix) with ESMTP id 339E84D8298 for <cpan-bug+php-interpreter [...]>; Wed, 26 Jul 2006 12:36:02 -0400 (EDT)
Received: from ( []) by (Postfix) with SMTP id B2B594D8297 for <bug-php-interpreter [...]>; Wed, 26 Jul 2006 12:36:01 -0400 (EDT)
Received: (qmail 1358 invoked by alias); 26 Jul 2006 16:36:00 -0000
Received: from (HELO ( by (qpsmtpd/0.28) with ESMTP; Wed, 26 Jul 2006 09:35:57 -0700
Received: from [] ( []) by (8.12.8/8.12.8) with ESMTP id k6QGroqd014707 for <bug-php-interpreter [...]>; Wed, 26 Jul 2006 11:53:53 -0500
Delivered-To: cpan-bug+php-interpreter [...]
User-Agent: Thunderbird (Windows/20060516)
Subject: redirecting output and debugging
Return-Path: <derek [...]>
X-Original-To: cpan-bug+php-interpreter [...]
Date: Wed, 26 Jul 2006 12:34:09 -0400
Message-Id: <44C79981.5080307 [...]>
To: bug-php-interpreter [...]
Content-Transfer-Encoding: 7bit
From: "Derek R. Price" <derek [...]>
X-RT-Original-Encoding: ISO-8859-1
Content-Length: 1887
Download (untitled) / with headers
text/plain 1.8k
Hello, I just started playing around with PHP::Interpreter. I spent about a day getting it to compile and install correctly, but now that it is loading properly, I'm having some trouble getting it to do what it says it will. My first problem is that include() does not provide useful error traces. I started by just trying to include a complex php program (that I know works from mod_php & Apache) and the only error message I could get was "error including index.php". Is there some way to get more useful debugging information out of the interpreter? Working around this, I moved back to a simple hello world php script. Run from a command line, a simple script that just instantiated a PHP::Interpreter and included my hello.php worked, outputting "hello world!" to the command line. I then tried to use the OUTPUT argument to PHP::Interpreter::new, like this: $p = PHP::Interpreter->new ('OUTPUT' => \$content); I also tried an anonymous subroutine reference instead of \$content. Neither sent the interpreter's output anywhere but STDOUT. Working around *this*, I tweaked to fork, with the parent reading from its child's STDOUT into a scalar, then printing it. This worked. So, I then tried to do the same thing from a mod_perl script running in Apache. Everything compiles and appears to run (I no longer get the "error including..." error), but the interpreter does not appear to be generating any output! Sorry about the exclamation point. I'm getting a little bit frustrated. Any pointers would be appreciated. I'm not sure I want to learn a whole lot more about the Perl C bindings right now, but if these are bugs and I can help debug via correspondence, I'll do what I can. Thanks, Derek -- Derek R. Price CVS Solutions Architect Get CVS support at Ximbiot <>! v: +1 248.835.1260 f: +1 248.835.1263 <>

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to