develooper Front page | perl.php.sandwich.dev | Postings from July 2006

Re: PHP::Interpreter

Thread Previous
From:
john
Date:
July 31, 2006 14:39
Subject:
Re: PHP::Interpreter
Message ID:
Pine.LNX.4.64.0607311405000.25702@meep.spaceegg.net
Further followup -

Running the t/14.t test script directly like
meep ~/PHP-Interpreter-1.0.1 % perl -Mblib t/14.t
1..7
ok 1 - use PHP::Interpreter;
# Testing basic function autoloadind
ok 2 - Create new PHP interpreter
ok 3 - Define PHP function that returns Perl values
Segmentation fault
meep ~/PHP-Interpreter-1.0.1 %

This is the line that causes the segfault:
my $phpval = $p->foo();

John

On Mon, 31 Jul 2006, john@grumpet.net wrote:

> Follow up - I added my php lib directory to ld.config and got a much better 
> result, in fact only failing 4 subtests:
>
> t/14...................# Testing basic function autoloadind
> t/14...................dubious
>        Test returned status 0 (wstat 11, 0xb)
> DIED. FAILED tests 4-7
>        Failed 4/7 tests, 42.86% okay
>
> So I'd say that's progress.  Any tips getting past this one?
>
> Thanks,
>
> John
>
>
>
>
>
> On Mon, 31 Jul 2006, john@grumpet.net wrote:
>
>> Hi There,
>> 
>> I'm trying to get PHP::Interpreter installed, and can't get past make test:
>> 
>> 
>> meep ~/PHP-Interpreter-1.0.1 % perl Makefile.PL /opt/php-devel
>> using phpdir /opt/php-devel
>> Checking if your kit is complete...
>> Looks good
>> Writing Makefile for PHP::Interpreter
>> meep ~/PHP-Interpreter-1.0.1 %
>> 
>> make shows a bunch of warnings, then make test barfs with a bunch like:
>> 
>> #   Failed test 'use PHP::Interpreter;'
>> #   in t/18.t at line 6.
>> #     Tried to use 'PHP::Interpreter'.
>> #     Error:  Can't load 
>> '/home/john/PHP-Interpreter-1.0.1/blib/arch/auto/PHP/Interpreter/Interpreter.so' 
>> for module PHP::Interpreter: libphp5.so: cannot open shared object file: No 
>> such file or directory at 
>> /usr/lib/perl5/5.8.8/i386-linux-thread-multi/DynaLoader.pm line 230.
>> #  at (eval 3) line 2
>> # Compilation failed in require at (eval 3) line 2.
>> # BEGIN failed--compilation aborted at t/18.t line 6.
>> Died at t/18.t line 6.
>> BEGIN failed--compilation aborted at t/18.t line 7.
>> # Looks like you planned 6 tests but only ran 1.
>> # Looks like you failed 1 test of 1 run.
>> # Looks like your test died just after 1.
>> t/18...................dubious
>>        Test returned status 255 (wstat 65280, 0xff00)
>> DIED. FAILED tests 1-6
>>        Failed 6/6 tests, 0.00% okay
>> t/19...................# Testing Output Buffering
>> 
>> #   Failed test 'use PHP::Interpreter;'
>> 
>> 
>> Seems to be complaining about being unable to load 
>> /opt/php-devel/lib/libphp5.so
>> 
>> Fedora core 5, i386
>> PHP 5.1.4
>> Perl 5.8.8
>> 
>> Any suggestions welcome.
>> 
>> Thanks,
>> 
>> John
>> 
>

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About