php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24536 cloning within a try-catch block
Submitted: 2003-07-08 07:54 UTC Modified: 2003-07-27 08:20 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: andre at onestep dot nl Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 5CVS-2003-07-08 (dev) OS: w2k
Private report: No CVE-ID: None
 [2003-07-08 07:54 UTC] andre at onestep dot nl
Description:
------------
Cloning an object within a try-catch block generates a "bad opcode in throw list" error.

Reproduce code:
---------------
class MyClass
{
	public $foobar;
}

try
{
	$a = new MyClass();
	$b = $a->__clone();
}
catch(Exception $exception)
{
	echo $exception->getMessage();
}

Expected result:
----------------
An empty page.

Actual result:
--------------
PHP Fatal error: Bad opcode in throw list in C:\simon\production\www\test2.php on line 13 

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-27 08:20 UTC] stas@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Aug 19 02:01:28 2024 UTC