Skip to content
Wade Womersley

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

Programming
Why I Still Like Serverless for Small Teams
April 1, 2026
Programming
phantomjs custom module – require and create
December 9, 2013
Programming
Most Mobile App Complexity Is Not in the UI
April 6, 2026
Programming
PHP 5.4 Unofficial Ubuntu apt-get available
March 11, 2012

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