phpv8 / v8js

V8 Javascript Engine for PHP — This PHP extension embeds the Google V8 Javascript Engine
http://pecl.php.net/package/v8js
MIT License
1.84k stars 200 forks source link

not support v8 5.4.374 #251

Closed PaoJiao closed 8 years ago

PaoJiao commented 8 years ago

what is the max version supported?

got error in v8 5.4.374:

configure: error: could not determine libv8 version
ERROR: `/tmp/pear/temp/v8js/configure --with-php-config=/usr/bin/php-config --with-v8js' failed
stesie commented 8 years ago

@imbubble I can confirm version 5.4.3 working, but I'll look into supporting the most recent ones also, of course :)

stesie commented 8 years ago

I've now compiled V8 5.4.374 myself and can confirm it working with latest version of V8Js (1.3.1 or just php7 branch from Git)

stesie commented 8 years ago

... therefore please provide your config.log file somewhere, it should have some more detailed info on what's going wrong

PaoJiao commented 8 years ago

Thanks for reply.

here is config.log and v8.files installed:

v8.files.txt

config.log.txt

and on ArchLinux, PHP 7.0.9, trying to install by pecl install v8js. the v8 is not installed by https://github.com/phpv8/v8js/blob/master/README.Linux.md#compile-latest-v8

AlexMasterov commented 8 years ago

@imbubble

In the list of files V8 is missing required library. It was probably built without library=shared flag or they just were not copied. I can also confirm that V8js works with the latest V8 5.4.406 version.

PaoJiao commented 8 years ago

@AlexMasterov

okay, seems that's the point. thanks.