<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for Andrew's Tech Musings</title>
	<atom:link href="http://andrewcurioso.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://andrewcurioso.com</link>
	<description>Tech, Social Media, PHP, Opinions</description>
	<lastBuildDate>Fri, 27 Jan 2012 03:10:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>Comment on My 2011 New Year&#8217;s resolutions by Charles Voita</title>
		<link>http://andrewcurioso.com/2011/01/my-2011-new-years-resolutions/comment-page-1/#comment-29765</link>
		<dc:creator>Charles Voita</dc:creator>
		<pubDate>Fri, 27 Jan 2012 03:10:25 +0000</pubDate>
		<guid isPermaLink="false">http://andrewcurioso.com/?p=586#comment-29765</guid>
		<description>I am liking your blog so far. Keep posting stuff! I also bought your book &#039;Expert PHP and MySQL.&#039; I am excited to bite into the real tofu of this book!</description>
		<content:encoded><![CDATA[<p>I am liking your blog so far. Keep posting stuff! I also bought your book &#8216;Expert PHP and MySQL.&#8217; I am excited to bite into the real tofu of this book!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on RIA: Desktop Notifications in Google Chrome by Andrew Curioso</title>
		<link>http://andrewcurioso.com/2011/01/ria-desktop-notifications-in-google-chrome/comment-page-1/#comment-21062</link>
		<dc:creator>Andrew Curioso</dc:creator>
		<pubDate>Wed, 05 Oct 2011 18:48:57 +0000</pubDate>
		<guid isPermaLink="false">http://andrewcurioso.com/?p=596#comment-21062</guid>
		<description>@tomy The user just has to have the page open in their browser. Which means that they may have the window minimized or be on another tab. This is great for email where you might get an email while on another tab and you would want to know that new mail came in. There are many other such examples. So it is useful in that regard (just like you would have to have your mail client open to see a Growl notification on Mac).

If you did want to display it when the user didn&#039;t have your page open you would have to create a browser plugin or somehow have a Window open (such as a pop-under -- *cringe*). But I think it is useful even without that.</description>
		<content:encoded><![CDATA[<p>@tomy The user just has to have the page open in their browser. Which means that they may have the window minimized or be on another tab. This is great for email where you might get an email while on another tab and you would want to know that new mail came in. There are many other such examples. So it is useful in that regard (just like you would have to have your mail client open to see a Growl notification on Mac).</p>
<p>If you did want to display it when the user didn&#8217;t have your page open you would have to create a browser plugin or somehow have a Window open (such as a pop-under &#8212; *cringe*). But I think it is useful even without that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on RIA: Desktop Notifications in Google Chrome by tomy</title>
		<link>http://andrewcurioso.com/2011/01/ria-desktop-notifications-in-google-chrome/comment-page-1/#comment-21047</link>
		<dc:creator>tomy</dc:creator>
		<pubDate>Wed, 05 Oct 2011 16:26:34 +0000</pubDate>
		<guid isPermaLink="false">http://andrewcurioso.com/?p=596#comment-21047</guid>
		<description>Is it possible to create a notification while the user isn&#039;t on the specific page or while the browser isn&#039;t open? I thought that was the point.</description>
		<content:encoded><![CDATA[<p>Is it possible to create a notification while the user isn&#8217;t on the specific page or while the browser isn&#8217;t open? I thought that was the point.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Welcome CakeFest 2010 Attendees by Janis</title>
		<link>http://andrewcurioso.com/2010/09/welcome-cakefest-2010-attendees/comment-page-1/#comment-17459</link>
		<dc:creator>Janis</dc:creator>
		<pubDate>Sat, 10 Sep 2011 17:29:23 +0000</pubDate>
		<guid isPermaLink="false">http://andrewcurioso.com/?p=461#comment-17459</guid>
		<description>Hi,

Do you have a sample code for this tutorial?

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Do you have a sample code for this tutorial?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A method called &#8216;delete&#8217; in Flex and AS3 by cristi</title>
		<link>http://andrewcurioso.com/2009/07/a-method-called-delete-in-flex-and-as3/comment-page-1/#comment-1471</link>
		<dc:creator>cristi</dc:creator>
		<pubDate>Thu, 31 Mar 2011 14:18:56 +0000</pubDate>
		<guid isPermaLink="false">http://andrewcurioso.com/?p=137#comment-1471</guid>
		<description>A big thank you Andrew!</description>
		<content:encoded><![CDATA[<p>A big thank you Andrew!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Counting to 1000 in PHP without loops or conditionals by Rendimiento de los bucles en Javascript frente a otras alternativas &#124; EtnasSoft</title>
		<link>http://andrewcurioso.com/2011/03/counting-to-1000-in-php-without-loops-or-conditionals/comment-page-1/#comment-1372</link>
		<dc:creator>Rendimiento de los bucles en Javascript frente a otras alternativas &#124; EtnasSoft</dc:creator>
		<pubDate>Thu, 17 Mar 2011 08:46:54 +0000</pubDate>
		<guid isPermaLink="false">http://andrewcurioso.com/?p=690#comment-1372</guid>
		<description>[...] original para C y C++: Printing 1 to 1000 without loop or conditionals  Solución para PHP: Counting to 1000 in PHP without loops or conditionals Otra solución para PHP: PHP to 1000 without conditionals and [...]</description>
		<content:encoded><![CDATA[<p>[...] original para C y C++: Printing 1 to 1000 without loop or conditionals  Solución para PHP: Counting to 1000 in PHP without loops or conditionals Otra solución para PHP: PHP to 1000 without conditionals and [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Counting to 1000 in PHP without loops or conditionals by Andrew Curioso</title>
		<link>http://andrewcurioso.com/2011/03/counting-to-1000-in-php-without-loops-or-conditionals/comment-page-1/#comment-1350</link>
		<dc:creator>Andrew Curioso</dc:creator>
		<pubDate>Tue, 15 Mar 2011 21:36:20 +0000</pubDate>
		<guid isPermaLink="false">http://andrewcurioso.com/?p=690#comment-1350</guid>
		<description>I used this code as the answer to a Stack Overflow question. Vote up my answer if you like it.

http://stackoverflow.com/questions/5305156/printing-1-to-1000-without-loop-or-conditionals-in-php/5318251</description>
		<content:encoded><![CDATA[<p>I used this code as the answer to a Stack Overflow question. Vote up my answer if you like it.</p>
<p><a href="http://stackoverflow.com/questions/5305156/printing-1-to-1000-without-loop-or-conditionals-in-php/5318251" rel="nofollow">http://stackoverflow.com/questions/5305156/printing-1-to-1000-without-loop-or-conditionals-in-php/5318251</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Counting to 1000 in PHP without loops or conditionals by Tobias Sjösten</title>
		<link>http://andrewcurioso.com/2011/03/counting-to-1000-in-php-without-loops-or-conditionals/comment-page-1/#comment-1349</link>
		<dc:creator>Tobias Sjösten</dc:creator>
		<pubDate>Tue, 15 Mar 2011 20:35:17 +0000</pubDate>
		<guid isPermaLink="false">http://andrewcurioso.com/?p=690#comment-1349</guid>
		<description>Wow, that&#039;s a brilliant solution! I feel humbled. :)

My own attempt, which you commented before, can be found at: http://vvv.tobiassjosten.net/php/php-to-1000-without-conditionals-and-loops</description>
		<content:encoded><![CDATA[<p>Wow, that&#8217;s a brilliant solution! I feel humbled. <img src='http://andrewcurioso.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>My own attempt, which you commented before, can be found at: <a href="http://vvv.tobiassjosten.net/php/php-to-1000-without-conditionals-and-loops" rel="nofollow">http://vvv.tobiassjosten.net/php/php-to-1000-without-conditionals-and-loops</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on RIA: Desktop Notifications in Google Chrome by Tweets that mention RIA: Desktop Notifications in Google Chrome &#124; Andrew's Tech Musings -- Topsy.com</title>
		<link>http://andrewcurioso.com/2011/01/ria-desktop-notifications-in-google-chrome/comment-page-1/#comment-1141</link>
		<dc:creator>Tweets that mention RIA: Desktop Notifications in Google Chrome &#124; Andrew's Tech Musings -- Topsy.com</dc:creator>
		<pubDate>Thu, 27 Jan 2011 21:50:48 +0000</pubDate>
		<guid isPermaLink="false">http://andrewcurioso.com/?p=596#comment-1141</guid>
		<description>[...] This post was mentioned on Twitter by Dion Almaer, html5 and mamacdon, Markus Leutwyler. Markus Leutwyler said: RT @dalmaer: Andrew Curioso has a basic tutorial on using webkitNotifications http://t.co/KZ9NYWk (a la Gmail) [...]</description>
		<content:encoded><![CDATA[<p>[...] This post was mentioned on Twitter by Dion Almaer, html5 and mamacdon, Markus Leutwyler. Markus Leutwyler said: RT @dalmaer: Andrew Curioso has a basic tutorial on using webkitNotifications <a href="http://t.co/KZ9NYWk" rel="nofollow">http://t.co/KZ9NYWk</a> (a la Gmail) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Error handling stack in PHP 5.3+ by Andrew Curioso</title>
		<link>http://andrewcurioso.com/2010/10/error-handeling-stack-in-php-5-3/comment-page-1/#comment-875</link>
		<dc:creator>Andrew Curioso</dc:creator>
		<pubDate>Mon, 22 Nov 2010 05:08:03 +0000</pubDate>
		<guid isPermaLink="false">http://andrewcurioso.com/?p=518#comment-875</guid>
		<description>@Petah, those are good question and ones that I didn&#039;t know the answer so I ran some tests.

First, the question about when an error handler itself throws an error: no, it does not cause an infinite loop (or any loop for that matter). PHP is smart about it and immediately falls through to the default PHP error handler. In the snippet you posted it does the same thing. I was not, able to get your &quot;if (self::$handling_error) {&quot; to trigger (at least in my version of PHP).

Second, as far as output buffering goes: you are correct. In my example, the output of the handler would be sucked up and never displayed.

Technically, the behavior that should happen (to be consistent with PHP) is to honor output buffering on warnings and notices and kill output buffering on errors.

With your code, what might work is to put a try/catch block around the loop in the error handler and put your fall through code inside the &quot;catch&quot; block.

Note: I used PHP 5.3.2 and this is something that I can definitely see changing between versions. Older versions might cause loops, as you say.

Also, just to be clear, the code in this article is not intended for production but more as an example of recursion and closures in PHP 5.3. A production ready error handler should be a lot more robust than this.</description>
		<content:encoded><![CDATA[<p>@Petah, those are good question and ones that I didn&#8217;t know the answer so I ran some tests.</p>
<p>First, the question about when an error handler itself throws an error: no, it does not cause an infinite loop (or any loop for that matter). PHP is smart about it and immediately falls through to the default PHP error handler. In the snippet you posted it does the same thing. I was not, able to get your &#8220;if (self::$handling_error) {&#8221; to trigger (at least in my version of PHP).</p>
<p>Second, as far as output buffering goes: you are correct. In my example, the output of the handler would be sucked up and never displayed.</p>
<p>Technically, the behavior that should happen (to be consistent with PHP) is to honor output buffering on warnings and notices and kill output buffering on errors.</p>
<p>With your code, what might work is to put a try/catch block around the loop in the error handler and put your fall through code inside the &#8220;catch&#8221; block.</p>
<p>Note: I used PHP 5.3.2 and this is something that I can definitely see changing between versions. Older versions might cause loops, as you say.</p>
<p>Also, just to be clear, the code in this article is not intended for production but more as an example of recursion and closures in PHP 5.3. A production ready error handler should be a lot more robust than this.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

