|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-07-27 08:20 UTC] stas@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 03:00:01 2025 UTC |
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