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
 [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: Sat Jan 18 17:01:23 2020 UTC