Xdebug for Fedora with PHP 5.3

In February I wrote a guide on setting up Xdebug for Eclipse usage under Ubuntu. Using a neat debugger while exploring an existing WordPress project is a must and among the two possibilities (the Zend one or Xdebug) I use Xdebug. However, setting it up on my ThinkPad took a bit more time due to the different configuration. Basically the installation process and the Eclipse configuration is all the same - install php-devel and pecl and then proceed with xdebug install, configure Eclipse further. However, adding the Xdebug support for the PHP has several differences to be taken into account.… Continue Reading

Bulgaria PHP Conference – Day 2 Recap

Today was the last day of the Bulgaria PHP Conference and after my Day 1 review, here's my recap post from Day 2. First off, I'd like to thank the organizers for the splendid event - great organization, incredible speakers list, solid WiFi, several areas for hanging out and a great atmosphere - looking forward to the 2016 version! Drupal 8: The Crash Course Larry Garfield gave a great talk explaining the transition from their handcrafted code built until Drupal 7 to their current code base in Drupal 8 based on a lot of open source libraries and tools. His Drupal 8: The Crash… Continue Reading

Bulgaria PHP Conference – Day 1 Recap

Bulgaria is hosting its first official Bulgaria PHP Conference this weekend and I was honored to attend and present my WordPress Core Architecture talk today. I usually don't do recaps here - mostly because lots of my readers attend WordCamps with me, watch the talks on WordPress.tv, follow Twitter hashtags and so forth, or I go to other conferences that focus on different areas unrelated to what I tend to blog about here. PHP, however, is the core of the WordPress platform, and the line-up this year is magnificent, which is why I feel obliged to share a quick overview about some of the… Continue Reading

eval() error check

We all know how dangerous eval() is in terms of security, but still it is the necessary evil sometimes. I've been developing a script last week that required eval() execution. I did pretty granular input validation with regular expressions and known troubleish test cases. Still, some expressions passed to the eval() function were prone to parse errors. Reading a bit I tried to use the exceptions handling mechanism in PHP 5 (try - catch blocks) to provide a solution, or using a error handler with the set_error_handler function. They work for exceptions and some basic errors, but most of the… Continue Reading