php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65473 Segmentation faults with Objects
Submitted: 2013-08-18 18:48 UTC Modified: 2015-03-13 14:59 UTC
From: Stefan at Weinzierl-Stefan dot de Assigned: stesie (profile)
Status: Closed Package: v8js (PECL)
PHP Version: Irrelevant OS: Debian
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: Stefan at Weinzierl-Stefan dot de
New email:
PHP Version: OS:

 

 [2013-08-18 18:48 UTC] Stefan at Weinzierl-Stefan dot de
Description:
------------
Any function which returns a object into the JavaScript-Context generates a segmentation fault, if a method of this object is called.

Test script:
---------------
class Test {
  public function m1() {
    echo "Test\n";
  }
}

$script=<<<EOT
var a=PHP.func();
a.m1();
EOT;

$v8=new V8Js();
$v8->func=function() { return new Test(); };
$v8->executeString($script);



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-11-20 22:08 UTC] stesie at brokenpipe dot de
It's been a while since you've reported this issue.  But I'm now going over all the issues that piled up at bugs.php.net ...

I've tried your code with recent v8js master branch (from https://github.com/preillyme/v8js) and it works fine.  No more crashing.

Generally the 0.1.5 release is rather outdated, so please use master branch from github if you're still interested.  A lot of effort has been put into v8js recently, so it's far more stable compared to a year ago

cheers
  ~stesie
 [2015-03-13 14:59 UTC] stesie@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: stesie
 [2015-03-13 14:59 UTC] stesie@php.net
No feedback, closing now.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Jan 29 10:01:25 2020 UTC