php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59770 Assigning instanceof JSContext to other variable cause segfault
Submitted: 2011-05-17 08:54 UTC Modified: 2017-01-10 08:01 UTC
From: dariusz dot kierzkowski at gmail dot com Assigned:
Status: Suspended Package: spidermonkey (PECL)
PHP Version: Irrelevant OS: Linux (Slackware 12.2)
Private report: No CVE-ID: None
 [2011-05-17 08:54 UTC] dariusz dot kierzkowski at gmail dot com
Description:
------------
PHP: PHP Version 5.3.6

'./configure' '--prefix=/usr/local/php' '--with-config-file-path=/etc/php' '--with-apxs2=/usr/local/apache/bin/apxs' '--with-mysql=/usr/local/mysql' '--with-mysql-sock=/var/run/mysql/mysql.pid' '--with-mysqli=/usr/local/mysql/bin/mysql_config' '--with-pgsql=/usr/local/pgsql' '--with-sqlite' '--with-pdo-mysql=/usr/local/mysql/bin/mysql_config' '--with-pdo-pgsql=/usr/local/pgsql' '--with-db4' '--with-openssl' '--with-xmlrpc' '--with-xsl' '--with-zlib' '--with-gettext' '--with-gd' '--with-pear' '--with-bz2' '--with-curl' '--enable-gd-native-ttf' '--with-freetype-dir=/usr/lib' '--enable-sockets' '--enable-ftp' '--enable-inline-optimization' '--enable-magic-quotes' '--enable-mbstring' '--enable-xml' '--enable-soap' '--enable-wddx' '--enable-zip' '--enable-sqlite-utf8' 


Apache: Apache/2.2.17



Reproduce code:
---------------
$js = new JSContext();
$js2 = $js;           
echo get_class($js2);

//result: segmentation fault
 
$js = new JSContext();
$js2 = clone $js;           
echo get_class($js2);

//result: JSContext


Expected result:
----------------
JSContext


Actual result:
--------------
// Segmentation fault


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-10 08:01 UTC] kalle@php.net
-Status: Open +Status: Suspended
 [2017-01-10 08:01 UTC] kalle@php.net
Suspending this report as the extension have not had a release for almost 5 years.  Please revive this if the extension once again shows life
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC