Post Profile






Destructing PHP - Johannes Schlüter

Already last year I had a session at the fabulous FrOSCon conference about "Destructing PHP" No this wasn't a flaming/trolling talk, but an attempt to teach a bit about some less known language feature of PHP: Deterministic Destructors. To explain this let's take a look at a simple example: foo ($db, $data) { $db->beginTransaction(); foreach ($data as $row) { $db->insert($row); } $db->commit(); } $db = db::factory(); $data = data::factory(); ry { foo($db, $data); } catch (Exception $e) {} $db->insert(data::finalData()); ?>   Even if the syntax is correct this program is incorrect: It fails at exception safety.
read more

share

Related Posts


PHP@FrOSCon 2011 CFP running - Qafoo - PHP

Programming / Web Development : Planet PHP

Yes, it's that time of the year again, where the call for papers for PHP@FrOSCon takes place. As in the past 5 instances of this amazing event, the PHP Usergroup Dortmund - in cooperation with other user groups e.g. from Cologne - w...

PHP family meeting at FrOSCon - Liip

Programming / Web Development : Planet PHP

FrOSCon is one of those conference close by that I have missed attending for many years, mostly because its on the weekend and especially during the summer my weekends are reserved for ultimate frisbee. Well this year I set my prior...

PHP Subconference at FrOSCon 2012 - Kore Nordmann

Programming / Web Development : Planet PHP

This years FrOSCon - one of the most awesome open source software conferences - is right ahead and we are organizing a PHP ubconference gain this year. Read more for details.

PHP Subconference at FrOSCon 2013 - Kore Nordmann

Programming / Web Development : Planet PHP

This years FrOSCon – one of the most awesome open source software conferences – is right ahead and we are organizing a PHP project room again his year. Read more for details…

FrOSCon 2011 - Michael Maclean

Programming / Web Development : Planet PHP

I'm very pleased to be able to announce that I'll be giving two talks at this year's FrOSCon conference in St Augustin near Bonn in Germany, on the 20th and 21st of August. The first is on the PHP track, and is an overview of the PE...

Comments


Copyright © 2016 Regator, LLC