Defect #135

Fatal error: Trying to clone an uncloneable object of class ReflectionClass

Added by Ryan Boren 400 days ago. Updated 397 days ago.

Status:Fixed Start:2009-06-23
Priority:Release Critical Due date:
Assigned to:Geoffrey Sneddon % Done:

0%

Category:Miscellaneous
Target version:1.2
Affected Version:

1.1.3

PHP Version:

5.0.0

mbstring enabled:

No

iconv enabled:

No

cURL enabled:

No

zlib enabled:

No


Description

zend.ze1_compatibility_mode seems to cause problems. See http://core.trac.wordpress.org/ticket/10222

Associated revisions

Revision 1058
Added by Geoffrey Sneddon 397 days ago

Don't do any destruct magic if zend.ze1_compatibility_mode is enabled. This, at least locally, fixes #135.

Revision 1059
Added by Geoffrey Sneddon 397 days ago

Remove seemingly pointless PHP5 Reflection branch. Again, hopefully fix #135.

History

Updated by Geoffrey Sneddon 400 days ago

  • Status changed from Unconfirmed to New
  • Assigned to set to Geoffrey Sneddon
  • Priority changed from Medium to Release Critical
  • Target version set to 1.2

This happens on any PHP 5 version as far as I can tell. Running the test suite with php -d zend.ze1_compatibility_mode=On test.php shows the issue.

Updated by Geoffrey Sneddon 399 days ago

Is this fixed in r1053?

Updated by Ryan Boren 398 days ago

It avoids the errors, but doesn't seem to load the feed in some case with zend.ze1_compatibility_mode. Trying to boil it down to a simple test case.

Updated by Geoffrey Sneddon 397 days ago

  • Status changed from New to Fixed

Applied in changeset r1058.

Updated by Ryan Boren 397 days ago

This blows up with PHP4:

foreach ($methods as &$method)

PHP Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$'

Updated by Geoffrey Sneddon 397 days ago

  • Status changed from Fixed to New

Oh dear. stabs PHP

Updated by Geoffrey Sneddon 397 days ago

  • Status changed from New to Fixed

Applied in changeset r1059.

Also available in: Atom PDF