Opened 9 months ago

Last modified 9 months ago

#69349 assigned request

php-v8js

Reported by: belfie13 (CIIDMike) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: php-v8js

Description

I would like to request a port for the V8js php extension. php.net/v8js

I don't know if this helps but I found some info, heres the link:

https://stackoverflow.com/questions/5070278/any-docs-about-v8js-in-php/28931743#28931743

thank you :D

Attachments (1)

Portfile (1.1 KB) - added by ryandesign (Ryan Carsten Schmidt) 9 months ago.
unfinished Portfile

Download all attachments as: .zip

Change History (8)

comment:1 Changed 9 months ago by ryandesign (Ryan Carsten Schmidt)

Keywords: php removed
Port: php-v8js added
Summary: php v8jsphp-v8js

comment:2 Changed 9 months ago by ryandesign (Ryan Carsten Schmidt)

This request is blocked by #69352 for now.

Changed 9 months ago by ryandesign (Ryan Carsten Schmidt)

Attachment: Portfile added

unfinished Portfile

comment:3 in reply to:  2 Changed 9 months ago by barracuda156

Replying to ryandesign:

This request is blocked by #69352 for now.

It may be easier to patch this one, to be honest, than to reimplement V8 on a completely novel build system. This one I can take a look at in a day or two, I guess.

Or PHP would not work with static libs?

comment:4 Changed 9 months ago by barracuda156

According to README, it needs at least V8-9: https://github.com/phpv8/v8js If this is accurate, existing V8-8.3 will not be of use, we will need a new port for V8-x. (Unless, of course, an earlier version is used which is compatible with V8-8.x.)

Last edited 9 months ago by barracuda156 (previous) (diff)

comment:5 in reply to:  4 Changed 9 months ago by ryandesign (Ryan Carsten Schmidt)

Replying to barracuda156:

It may be easier to patch this one, to be honest, than to reimplement V8 on a completely novel build system.

Which of the nine static libraries that the v8-8.3 port installs is equivalent to the libv8 library php-v8js is looking for?

Replying to barracuda156:

According to README, it needs at least V8-9: https://github.com/phpv8/v8js

You are looking at the README from the head of the php8 branch. But the README from the latest released version, 2.1.2, which is the one the port will be created for, says it only requires v8 6.9 or later.

Last edited 9 months ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:6 Changed 9 months ago by belfie13 (CIIDMike)

from https://pecl.php.net/package/v8js/2.1.2
Release notes. Version 2.1.2 (stable)

  • support PHP 7.4
  • support V8 8.x

this could be a problem if there's no PHP8+ support

sorry if i'm getting in the way, I have no idea, this port making iz out of my league.

thanks for taking a look at it :D

comment:7 Changed 9 months ago by ryandesign (Ryan Carsten Schmidt)

You are correct that release 2.1.2 does not support php 8. The upcoming version 3.0.0 does, however it will also require a newer v8. Perhaps the php 8 compatibility changes can be backported to version 2.1.2. However no progress can be made on adding php-v8js to MacPorts until v8 is added to MacPorts; evidently the v8-8.3 port we have is not v8 but a fork of v8 that does not provide things in the way that v8 usually does.

Note: See TracTickets for help on using tickets.