develooper Front page | | Postings from July 2008

PHP::Interpretter Segfault

Trevor Smith
July 23, 2008 12:14
PHP::Interpretter Segfault
Message ID:
Hey guys,

So we are trying to use PHP::Interpretter in a Bricolage Perl template to call a
function included in an external file.  When trying to preview said
document the preview seqfaults.  I then commented out all the new code
I had added and uncommented it one line at a time until arriving at
this which causes a segfault:

# Start Oracal Update
use PHP::Interpreter;
my $opush = PHP::Interpreter->new();
#my $uid = $opush->somePhpFunc($title,$location,$description,$email,$dtstart,$dtend,$rrule);
# End Oracal Update

So apparently "my $opush = PHP::Interpreter->new();" is causing the
fault and this is pretty much standard code just creating a new
associated PHP interpreter instance.  Why is this failing?  Any help

-Trevor Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About