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

Food
Tiny Hotel Breakfast Jams Are Ridiculously Appealing
October 14, 2026
PHP
PHP 8.5.4 Released: Upgrade if You’re on 8.5
March 25, 2026
PHP
PHP 8.5 Clone With Makes Value Objects Less Annoying
May 10, 2026
AI
Next.js Is Starting to Treat AI Agents as Real Users
April 29, 2026

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