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:

  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on X (Opens in new window) X
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to 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
#PHPUK2010 Part 1
February 26, 2010
Programming
Reset MySQL root password if you forgot it #mysql
April 12, 2010
Films
InnoISAM / District 9
September 7, 2009
Random Stuff
Starling Purée Anyone? Airplane hits a flock of birds
September 30, 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 © 2025 wade.one.

Theme: Oceanly News Dark by ScriptsTown