PHP Error: Trying to clone an uncloneable object of class ReflectionClass

August 11, 2009 – 7:35 am

I’ve recently run into this error when deploying symfony applications:

“Trying to clone an uncloneable object of class ReflectionClass”.

What’s causing this is a relatively common setting in php.ini, called “zend.ze1_compatibility_mode”, which enables php4 compatibility mode in php5. Specifically it affects a couple of object handling conventions (empty objects cast to FALSE, and - oh this is my favorite - objects are passed by value instead of by reference.. can you imagine how much fun debugging your php5 application would be if this setting didn’t actually save you by breaking things altogether?) Needless to say some hosts like to keep this turned on to me “more compatible” with the past. Also needless to say I hate some hosts.

The way around it is either changing the php.ini setting to:

zend.ze1_compatibility_mode=Off

or disabling it at runtime, before the application bootstraps, via:

ini_set("zend.ze1_compatibility_mode", "off");

Hope it helps someone.


Filed under: Rnadom Sftuf — Tags: — by Richtermeister

92 Comments »

  1. Хорошего Вам дня! ian@elektrashop.ru” rel=”nofollow”>……

    с ув….

    Trackback by Freeman — June 15, 2010 @ 9:27 pm

  2. Добрый день! jose@tehnon.ru” rel=”nofollow”>……

    с ув….

    Trackback by Kostya — June 19, 2010 @ 7:49 am

  3. PillSpot.org. Canadian Health&Care.Special Internet Prices.No prescription online pharmacy.PillSpot.org. Vitamins@buy.online” rel=”nofollow”>.…

    Categories: Anti-allergic/Asthma.Womens Health.Antidiabetic.Vitamins/Herbal Supplements.Pain Relief.Stop SmokingAntibiotics.Mens Health.Blood Pressure/Heart.Skin Care.Mental HealthStomach.Weight Loss.Eye Care.Antidepressants.Antiviral.Anxiety/Slee…

    Trackback by ALEJANDRO — June 25, 2010 @ 11:40 am


  4. PillSpot.org. Canadian Health&Care.No prescription online pharmacy.Special Internet Prices.Best quality drugs. No prescription drugs. Buy drugs online

    Buy:Female Cialis.Acomplia.Wellbutrin SR.Amoxicillin.Advair.Lasix.Cozaar.Nymphomax.Aricept.Female Pink Viagra.Ventolin.Seroquel.Benicar.Buspar.Zetia.Lipothin.Prozac.SleepWell.Lipitor.Zocor….

    Trackback by LYLE — July 3, 2010 @ 7:45 pm


  5. Medicamentspot.com. Canadian Health&Care.Best quality drugs.No prescription online pharmacy.Special Internet Prices. Low price pills. Buy drugs online

    Buy:Accutane.Arimidex.Lumigan.Prevacid.Actos.Zovirax.Nexium.100% Pure Okinawan Coral Calcium.Petcam (Metacam) Oral Suspension.Zyban.Synthroid.Prednisolone.Mega Hoodia.Retin-A.Human Growth Hormone.Valtrex….

    Trackback by MAURICE — July 21, 2010 @ 4:58 am

  6. cell http://uverizon6fotjo.ALLSTOCKSPORT.INFO/tag/new+Plan+cell/ : cell…

    Plan…

    Trackback by cell — August 29, 2010 @ 2:31 am

  7. makeup http://dmakeupnbbcyp.BABYCLOTHESNUT.INFO/tag/r2+Silicone+makeup/ : r2…

    Silicone…

    Trackback by makeup — August 29, 2010 @ 2:06 pm

  8. clock http://cmalittaugr.01DODGEPARTS.US/tag/Bar+clock+bud/ : bud…

    Bar…

    Trackback by bud — August 29, 2010 @ 5:58 pm


  9. CheapTabletsOnline.com. Canadian Health&Care.Best quality drugs.Special Internet Prices.No prescription online pharmacy. No prescription drugs. Order pills online

    Buy:Propecia.Viagra.Cialis Soft Tabs.Levitra.Super Active ED Pack.Maxaman.Cialis Professional.Cialis.Viagra Super Force.Viagra Super Active+.Cialis Super Active+.Tramadol.Soma.VPXL.Viagra Professional.Zithromax.Viagra Soft Tabs….

    Trackback by EVERETT — September 5, 2010 @ 9:40 am


  10. CheapTabletsOnline.Com. Canadian Health&Care.No prescription online pharmacy.Best quality drugs.Special Internet Prices. No prescription pills. Buy pills online

    Buy:Cialis Super Active+.Cialis.Viagra Soft Tabs.Propecia.Cialis Soft Tabs.Levitra.Cialis Professional.Super Active ED Pack.Tramadol.Viagra Super Active+.Viagra.VPXL.Maxaman.Zithromax.Viagra Super Force.Viagra Professional.Soma….

    Trackback by WADE — September 6, 2010 @ 6:00 am

  11. TYC http://zv9.p2i.i34.co : TYC…

    Lights…

    Trackback by Lights — September 14, 2010 @ 6:50 pm


  12. NEW FASHION store. Original designers collection at low prices!!! 20 % TO 70 % OFF. END OF SEASON SALE!!!

    BUY FASHION. TOP BRANDS: GUCCI, DOLCE&GABBANA, BURBERRY, DIESEL, ICEBERG, ROBERTO CAVALLI, EMPORIO ARMANI, VERSACE…

    Trackback by GEORGE — November 10, 2010 @ 6:24 pm

  13. Accupril

    Buygeneric drugs…

    Trackback by JUAN — December 21, 2010 @ 11:01 am

  14. Cialis UK

    Buygeneric meds…

    Trackback by CLYDE — December 23, 2010 @ 2:39 am

  15. Cialis UK

    Buynow it…

    Trackback by COREY — December 23, 2010 @ 9:32 am

  16. Abilify

    Buygeneric pills…

    Trackback by GABRIEL — December 24, 2010 @ 10:12 am

  17. Buygeneric meds…

    Trackback by LAWRENCE — December 27, 2010 @ 10:13 am

  18. shimmy@adalat.simone” rel=”nofollow”>..

    Buyit now…

    Trackback by JOHN — December 28, 2010 @ 11:26 am

  19. aggrenox@1.now” rel=”nofollow”>.

    Buygeneric meds…

    Trackback by LYNN — December 28, 2010 @ 10:19 pm

  20. cost@of.alesse” rel=”nofollow”>..

    Buyit now…

    Trackback by CLAYTON — December 29, 2010 @ 4:06 am

  21. aloe@vera.gel.indicatii” rel=”nofollow”>…

    Buygeneric drugs…

    Trackback by SERGIO — December 29, 2010 @ 7:22 am

  22. fruite@of.the.earth.aloe.vera.juice.sale” rel=”nofollow”>…

    Buynow…

    Trackback by SHAWN — December 29, 2010 @ 11:06 am

  23. Aricept@official.site” rel=”nofollow”>.

    Buynow…

    Trackback by ENRIQUE — December 31, 2010 @ 4:35 pm

  24. cipro@250.mg” rel=”nofollow”>..

    Buygeneric meds…

    Trackback by FREDDIE — January 2, 2011 @ 2:41 pm

  25. buy@Viagra.now” rel=”nofollow”>…

    Buygeneric pills…

    Trackback by MITCHELL — January 4, 2011 @ 8:37 pm

  26. buy@cheap.viagra.in.uk” rel=”nofollow”>.

    Buywithout prescription…

    Trackback by BRIAN — January 4, 2011 @ 9:34 pm

  27. < a href=”http://my.gardenguides.com/members/buy-Cialis? buy@Cialis.now

    Buydrugs without prescription…

    Trackback by JORDAN — January 5, 2011 @ 5:05 am

  28. cheap@Viagra.now” rel=”nofollow”>…

    Buygeneric pills…

    Trackback by RON — January 6, 2011 @ 1:41 am

  29. prozac@dangers.now” rel=”nofollow”>..

    Buygeneric drugs…

    Trackback by ROLAND — January 6, 2011 @ 3:32 pm

  30. zofran odt

    Buynow it…

    Trackback by JASON — February 4, 2011 @ 8:21 pm

  31. buy zithromax online

    Buyno prescription…

    Trackback by LARRY — February 5, 2011 @ 2:01 pm

  32. buy zinc anode everett wa

    Buygeneric meds…

    Trackback by JAVIER — February 5, 2011 @ 5:43 pm

  33. buy liposomal lidocaine 4% cream maxilene

    Buywithout prescription…

    Trackback by ANTHONY — March 2, 2011 @ 10:27 pm

  34. Zoloft

    Buyit now…

    Trackback by ORLANDO — March 2, 2011 @ 11:13 pm

  35. zyrtec anticolinergici effect

    Buyno prescription…

    Trackback by JULIO — March 3, 2011 @ 9:55 am

  36. Vitamin B

    Buynow it…

    Trackback by ANDY — March 3, 2011 @ 11:15 pm

  37. where to buy lamisil

    Buygeneric drugs…

    Trackback by MATHEW — March 3, 2011 @ 11:57 pm

  38. gilbert’s syndrome tylenol

    Buygeneric meds…

    Trackback by CALVIN — March 4, 2011 @ 1:00 am

  39. pharmacokinetics of zyrtec

    Buyit now…

    Trackback by DANA — March 4, 2011 @ 8:01 pm

  40. side effect of zoloft

    Buyno prescription…

    Trackback by BRYAN — March 5, 2011 @ 12:42 am

  41. Omnicef

    Buynow it…

    Trackback by NICHOLAS — March 7, 2011 @ 12:39 am

  42. Omeprazole

    Buygeneric pills…

    Trackback by MANUEL — March 7, 2011 @ 2:50 am

  43. Synthroid

    Buygeneric pills…

    Trackback by JESSIE — March 7, 2011 @ 9:23 pm

  44. Retin A

    Buywithout prescription…

    Trackback by VIRGIL — March 8, 2011 @ 6:42 am

  45. Pyridium

    Buydrugs without prescription…

    Trackback by ALFONSO — March 8, 2011 @ 8:36 am

  46. Remeron

    Buyno prescription…

    Trackback by LONNIE — March 8, 2011 @ 9:12 am

  47. Zoloft

    Buyno prescription…

    Trackback by ALVIN — March 9, 2011 @ 8:22 am

  48. Synthroid

    Buygeneric meds…

    Trackback by ANDRE — March 9, 2011 @ 10:39 am

  49. is overdosing on seroquel painful

    Buydrugs without prescription…

    Trackback by AUSTIN — March 9, 2011 @ 12:56 pm

  50. can i take expired zyrtec

    Buygeneric drugs…

    Trackback by ROBERTO — March 9, 2011 @ 2:58 pm

  51. Eye Drops

    Buyno prescription…

    Trackback by CLINTON — March 9, 2011 @ 5:17 pm

  52. rogaine for thicker eyebrows

    Buynow…

    Trackback by JONATHAN — March 10, 2011 @ 1:06 am

  53. risperdal and carbatrol interactions

    Buygeneric pills…

    Trackback by PAUL — March 10, 2011 @ 3:13 am

  54. prozac breast feeding

    Buydrugs without prescription…

    Trackback by DONNIE — March 10, 2011 @ 5:16 am

  55. Parlodel

    Buydrugs without prescription…

    Trackback by RODNEY — March 10, 2011 @ 6:19 am

  56. savella diabetes blood sugar

    Buygeneric drugs…

    Trackback by DUANE — March 10, 2011 @ 7:51 am

  57. Pyrantel@Pamoate.now” rel=”nofollow”>..

    Buygeneric pills…

    Trackback by TERRANCE — March 28, 2011 @ 8:56 am

  58. Synthroid@Synthroid.Synthroid” rel=”nofollow”>..

    Buynow it…

    Trackback by ADRIAN — March 30, 2011 @ 5:58 am

  59. Yaz

    Buygeneric pills…

    Trackback by CARLOS — March 30, 2011 @ 2:33 pm

  60. risperdal@warnings.for.elderly” rel=”nofollow”>…

    Buynow it…

    Trackback by LLOYD — March 30, 2011 @ 7:01 pm

  61. Coreg@Coreg.Coreg” rel=”nofollow”>…

    Buywithout prescription…

    Trackback by WENDELL — March 31, 2011 @ 1:21 am

  62. Prozac@Prozac.Prozac” rel=”nofollow”>.

    Buygeneric drugs…

    Trackback by DARREN — March 31, 2011 @ 5:04 am

  63. Claritin@Claritin.Claritin” rel=”nofollow”>..

    Buyit now…

    Trackback by JEREMY — March 31, 2011 @ 5:25 am

  64. coral@calcium.ultra” rel=”nofollow”>…

    Buygeneric drugs…

    Trackback by OLIVER — April 1, 2011 @ 5:57 am

  65. buy@human.growth.hormone.product” rel=”nofollow”>…

    Buygeneric drugs…

    Trackback by JAIME — April 1, 2011 @ 7:06 am

  66. Buygeneric meds…

    Trackback by RICKY — April 1, 2011 @ 11:59 am

  67. .

    Buygeneric pills…

    Trackback by CLINTON — April 1, 2011 @ 5:37 pm

  68. early@childhood.purim.crafts” rel=”nofollow”>.

    Buygeneric drugs…

    Trackback by DUSTIN — April 1, 2011 @ 6:02 pm

  69. ..

    Buygeneric drugs…

    Trackback by CLAUDE — April 2, 2011 @ 6:32 am

  70. Buydrugs without prescription…

    Trackback by DALE — April 2, 2011 @ 8:23 am

  71. chantix@vs.zyban” rel=”nofollow”>..

    Buyit now…

    Trackback by PHILIP — April 2, 2011 @ 9:20 pm

  72. .

    Buywithout prescription…

    Trackback by JORDAN — April 3, 2011 @ 6:05 am

  73. dried@neem.leaves” rel=”nofollow”>…

    Buywithout prescription…

    Trackback by EUGENE — April 3, 2011 @ 10:29 am

  74. crestor@statin.drugs” rel=”nofollow”>…

    Buyit now…

    Trackback by KEITH — April 3, 2011 @ 11:01 am

  75. high@dose.dexamethasone.induction” rel=”nofollow”>..

    Buydrugs without prescription…

    Trackback by JARED — April 3, 2011 @ 11:12 pm

  76. can@you.take.vicodin.with.prednisolone” rel=”nofollow”>.

    Buynow…

    Trackback by JULIAN — April 4, 2011 @ 7:32 am

  77. is@prometrium.and.blood.clots” rel=”nofollow”>..

    Buywithout prescription…

    Trackback by LEE — April 4, 2011 @ 3:51 pm

  78. cutting@proscar.tablets” rel=”nofollow”>.

    Buygeneric pills…

    Trackback by SHAUN — April 4, 2011 @ 5:20 pm

  79. .

    Buygeneric drugs…

    Trackback by RICKY — April 4, 2011 @ 7:07 pm

  80. order@altace.cod” rel=”nofollow”>..

    Buynow…

    Trackback by HECTOR — April 4, 2011 @ 9:46 pm

  81. buy@online.amoxicillin” rel=”nofollow”>.

    Buywithout prescription…

    Trackback by CASEY — April 5, 2011 @ 1:17 am

  82. methotrexate@and.placenta.acretia” rel=”nofollow”>.

    Buygeneric drugs…

    Trackback by WESLEY — April 5, 2011 @ 1:57 am

  83. neurontin@dyskinesia.tardive.dystonia” rel=”nofollow”>.

    Buygeneric drugs…

    Trackback by FRED — April 5, 2011 @ 9:18 am

  84. how@well.does.nexium.cure.barretts.esophagus” rel=”nofollow”>.

    Buygeneric drugs…

    Trackback by WESLEY — April 5, 2011 @ 11:00 am

  85. dosage@of.abilify” rel=”nofollow”>..

    Buynow it…

    Trackback by LEROY — April 5, 2011 @ 3:34 pm

  86. changing@from.paxil.to.paxil.cr” rel=”nofollow”>.

    Buyno prescription…

    Trackback by NORMAN — April 5, 2011 @ 3:49 pm

  87. plan@b.skateboards.at.target” rel=”nofollow”>.

    Buywithout prescription…

    Trackback by JORDAN — April 5, 2011 @ 6:32 pm

  88. premarin@cream.comments” rel=”nofollow”>…

    Buyit now…

    Trackback by LYNN — April 6, 2011 @ 12:34 am

  89. side@effectsof.flovent” rel=”nofollow”>..

    Buywithout prescription…

    Trackback by TED — April 6, 2011 @ 4:14 am

  90. Buyno prescription…

    Trackback by JUAN — April 6, 2011 @ 4:51 am

  91. ..

    Buyit now…

    Trackback by SALVADOR — April 7, 2011 @ 2:40 am

  92. buy@generic.LEVITRA” rel=”nofollow”>…

    Need cheap generic LEVITRA?…

    Trackback by Alexander7 — July 17, 2011 @ 12:49 pm

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress