Skip to content
wade.one

wade.one

wade womersley – york based software engineer

  • Home
  • 2009
  • September
  • 2
  • Another day, another group of PHP “funness”

Another day, another group of PHP “funness”

Posted on September 2, 2009 By Wade No Comments on Another day, another group of PHP “funness”
Programming, Random Stuff

PHP and Serializing…don’t try and store the result in a plain text file, there’s just a chance you may end up storing NUL so when you go to read a line, you’ll end up only reading part of it (the serialized object had a stack trace in it from an exception.)

Incidentally, don’t try and debug code that works – it’s always a good idea to read the code that is storing the data you think is wrong before trying to debug the output, I couldn’t work out why I wasn’t logging somethin only for certain exceptions, then eventually I checked the logging line and realised, for that particular exception I had decided to do a manual log entry rather than throw and catch an exception.

And now here’s a cat:

funny-pictures-cat-is-a-gargoyle

Courtesy of ICanHazCheezburger

Share:

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Reddit (Opens in new window) Reddit

Related

Comments

comments

Post navigation

❮ Previous Post: New underwear!
Next Post: It goes without saying… ❯

You may also like

Random Stuff
Single Ladies versus Duck Tales works beautifully
May 30, 2015
Ego-centric
Derren Brown – How to Control the Nation
September 19, 2009
Random Stuff
Starling Purée Anyone? Airplane hits a flock of birds
September 30, 2009
Random Stuff
Costa Coffee Leeds – Unhelpful and Very Dirty/Unhygienic
November 29, 2009

Leave a Reply Cancel reply

You must be logged in to post a comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  • AI
  • artificial intelligence
  • Ego-centric
  • Events
  • Films
  • Food
  • Gaming
  • Gym
  • Hardware
  • Holidays
  • News
  • PHP
  • Programming
  • Random Stuff
  • Reviews
  • Science
  • SEO
  • Software
  • Software Engineer
  • Support
  • Uncategorized
  • Work

Copyright © 2026 wade.one.

Theme: Oceanly News Dark by ScriptsTown