|  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
Have you experienced this issue?
Rate the importance of this bug to you:

 [2011-05-17 08:54 UTC] dariusz dot kierzkowski at gmail dot com
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/' '--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:

Actual result:
// Segmentation fault


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-10 08:01 UTC]
-Status: Open +Status: Suspended
 [2017-01-10 08:01 UTC]
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: Wed Jun 19 01:01:29 2024 UTC