<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>phpmsajax Work Item Rss Feed</title><link>http://www.codeplex.com/phpmsajax/WorkItem/List.aspx</link><description>phpmsajax Work Item Rss Description</description><item><title>Created Issue: Exceptions not passed properly to debug framework</title><link>http://www.codeplex.com/phpmsajax/WorkItem/View.aspx?WorkItemId=7546</link><description>Most of what&amp;#39;s needed to pass PHP exceptions right through to JavaScript is there, except for an HTTP header that the framework checks.  Add&lt;br /&gt;&lt;br /&gt;            header&amp;#40;&amp;#39;jsonerror&amp;#58;true&amp;#39;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;at line 95 to enable it.&lt;br /&gt;&lt;br /&gt;Now you can see your exception message rather than &amp;#34;The &amp;#39;d&amp;#39; property is missing from the JSON wrapper&amp;#34; &amp;#40;emitted by the Debug library&amp;#41;.&lt;br /&gt;</description><author>hpatcouto</author><pubDate>Mon, 08 Sep 2008 16:32:44 GMT</pubDate><guid isPermaLink="false">Created Issue: Exceptions not passed properly to debug framework 20080908043244P</guid></item><item><title>Created Issue: Useless $applicationRoot</title><link>http://www.codeplex.com/phpmsajax/WorkItem/View.aspx?WorkItemId=7545</link><description>MSAjaxProxyGenerator defines &amp;#36;applicationRoot at line 12.  It is never used and is useless.&lt;br /&gt;</description><author>hpatcouto</author><pubDate>Mon, 08 Sep 2008 16:26:20 GMT</pubDate><guid isPermaLink="false">Created Issue: Useless $applicationRoot 20080908042620P</guid></item><item><title>COMMENTED ISSUE: b has no properties</title><link>http://www.codeplex.com/phpmsajax/WorkItem/View.aspx?WorkItemId=4997</link><description>Trying your hello example creates &amp;#34;b has no properties&amp;#34; error in MicrosoftAjax.js line 5.&lt;br /&gt;When changing script source from MicrosoftAjax.js to MicrosoftAjax.debug.js is says&amp;#58;&lt;br /&gt;Chyba&amp;#58; &amp;#91;Exception... &amp;#34;&amp;#39;Sys.Net.WebServiceFailedException&amp;#58; Sys.Net.WebServiceFailedException&amp;#58; The server method &amp;#39;SayHello&amp;#39; returned invalid data. The &amp;#39;d&amp;#39; property is missing from the JSON wrapper.&amp;#39; when calling method&amp;#58; &amp;#91;nsIOnReadyStateChangeHandler&amp;#58;&amp;#58;handleEvent&amp;#93;&amp;#34;  nsresult&amp;#58; &amp;#34;0x8057001c &amp;#40;NS_ERROR_XPC_JS_THREW_JS_OBJECT&amp;#41;&amp;#34;  location&amp;#58; &amp;#34;&amp;#60;unknown&amp;#62;&amp;#34;  data&amp;#58; no&amp;#93;&lt;br /&gt;&lt;br /&gt;Using PHP PHP 5.2.5, Apache 2.2.6, Windows XP Pro, FireFox 2.0.0.11&lt;br /&gt;Comments: ** Comment from web user: Dzonny ** &lt;p&gt;And getting undefined also in IE&lt;/p&gt;</description><author>Dzonny</author><pubDate>Sun, 06 Jan 2008 13:47:30 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: b has no properties 20080106014730P</guid></item><item><title>COMMENTED ISSUE: b has no properties</title><link>http://www.codeplex.com/phpmsajax/WorkItem/View.aspx?WorkItemId=4997</link><description>Trying your hello example creates &amp;#34;b has no properties&amp;#34; error in MicrosoftAjax.js line 5.&lt;br /&gt;When changing script source from MicrosoftAjax.js to MicrosoftAjax.debug.js is says&amp;#58;&lt;br /&gt;Chyba&amp;#58; &amp;#91;Exception... &amp;#34;&amp;#39;Sys.Net.WebServiceFailedException&amp;#58; Sys.Net.WebServiceFailedException&amp;#58; The server method &amp;#39;SayHello&amp;#39; returned invalid data. The &amp;#39;d&amp;#39; property is missing from the JSON wrapper.&amp;#39; when calling method&amp;#58; &amp;#91;nsIOnReadyStateChangeHandler&amp;#58;&amp;#58;handleEvent&amp;#93;&amp;#34;  nsresult&amp;#58; &amp;#34;0x8057001c &amp;#40;NS_ERROR_XPC_JS_THREW_JS_OBJECT&amp;#41;&amp;#34;  location&amp;#58; &amp;#34;&amp;#60;unknown&amp;#62;&amp;#34;  data&amp;#58; no&amp;#93;&lt;br /&gt;&lt;br /&gt;Using PHP PHP 5.2.5, Apache 2.2.6, Windows XP Pro, FireFox 2.0.0.11&lt;br /&gt;Comments: ** Comment from web user: Dzonny ** &lt;p&gt;.... and exception when using MicrosoftAjax.debug.js&amp;#58;&lt;br /&gt;Chyba&amp;#58; &amp;#91;Exception... &amp;#34;&amp;#39;Sys.Net.WebServiceFailedException&amp;#58; Sys.Net.WebServiceFailedException&amp;#58; The server method &amp;#39;SayHello&amp;#39; returned invalid data. The &amp;#39;d&amp;#39; property is missing from the JSON wrapper.&amp;#39; when calling method&amp;#58; &amp;#91;nsIOnReadyStateChangeHandler&amp;#58;&amp;#58;handleEvent&amp;#93;&amp;#34;  nsresult&amp;#58; &amp;#34;0x8057001c &amp;#40;NS_ERROR_XPC_JS_THREW_JS_OBJECT&amp;#41;&amp;#34;  location&amp;#58; &amp;#34;&amp;#60;unknown&amp;#62;&amp;#34;  data&amp;#58; no&amp;#93;&lt;/p&gt;</description><author>Dzonny</author><pubDate>Sun, 06 Jan 2008 12:21:22 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: b has no properties 20080106122122P</guid></item><item><title>COMMENTED ISSUE: b has no properties</title><link>http://www.codeplex.com/phpmsajax/WorkItem/View.aspx?WorkItemId=4997</link><description>Trying your hello example creates &amp;#34;b has no properties&amp;#34; error in MicrosoftAjax.js line 5.&lt;br /&gt;When changing script source from MicrosoftAjax.js to MicrosoftAjax.debug.js is says&amp;#58;&lt;br /&gt;Chyba&amp;#58; &amp;#91;Exception... &amp;#34;&amp;#39;Sys.Net.WebServiceFailedException&amp;#58; Sys.Net.WebServiceFailedException&amp;#58; The server method &amp;#39;SayHello&amp;#39; returned invalid data. The &amp;#39;d&amp;#39; property is missing from the JSON wrapper.&amp;#39; when calling method&amp;#58; &amp;#91;nsIOnReadyStateChangeHandler&amp;#58;&amp;#58;handleEvent&amp;#93;&amp;#34;  nsresult&amp;#58; &amp;#34;0x8057001c &amp;#40;NS_ERROR_XPC_JS_THREW_JS_OBJECT&amp;#41;&amp;#34;  location&amp;#58; &amp;#34;&amp;#60;unknown&amp;#62;&amp;#34;  data&amp;#58; no&amp;#93;&lt;br /&gt;&lt;br /&gt;Using PHP PHP 5.2.5, Apache 2.2.6, Windows XP Pro, FireFox 2.0.0.11&lt;br /&gt;Comments: ** Comment from web user: Dzonny ** &lt;p&gt;There was a problem with your PHP code and my very strict PHP settings. It generated a notice&amp;#58;&lt;br /&gt;&amp;#60;br &amp;#47;&amp;#62;&lt;br /&gt;&amp;#60;b&amp;#62;Notice&amp;#60;&amp;#47;b&amp;#62;&amp;#58;  Undefined index&amp;#58;  HTTP_CONTENT_TYPE in &amp;#60;b&amp;#62;C&amp;#58;&amp;#92;Program Files&amp;#92;Apache Software Foundation&amp;#92;Apache2.2&amp;#92;htdocs&amp;#92;filestore&amp;#92;phpmsajax&amp;#92;MSAjaxService.php&amp;#60;&amp;#47;b&amp;#62; on line &amp;#60;b&amp;#62;60&amp;#60;&amp;#47;b&amp;#62;&amp;#60;br &amp;#47;&amp;#62;&lt;br /&gt;So, I&amp;#39;ve altered the line 60 from&lt;br /&gt;if &amp;#40;&amp;#40;strpos&amp;#40;&amp;#36;_SERVER&amp;#91;&amp;#39;HTTP_CONTENT_TYPE&amp;#39;&amp;#93;, &amp;#39;application&amp;#47;json&amp;#39;&amp;#41; &amp;#33;&amp;#61;&amp;#61; 0&amp;#41; &amp;#38;&amp;#38; &amp;#40;strpos&amp;#40;&amp;#36;_SERVER&amp;#91;&amp;#39;CONTENT_TYPE&amp;#39;&amp;#93;, &amp;#39;application&amp;#47;json&amp;#39;&amp;#41; &amp;#33;&amp;#61;&amp;#61; 0&amp;#41;&amp;#41;&lt;br /&gt;to&lt;br /&gt;if &amp;#40;&amp;#40;strpos&amp;#40;&amp;#64;&amp;#36;_SERVER&amp;#91;&amp;#39;HTTP_CONTENT_TYPE&amp;#39;&amp;#93;, &amp;#39;application&amp;#47;json&amp;#39;&amp;#41; &amp;#33;&amp;#61;&amp;#61; 0&amp;#41; &amp;#38;&amp;#38; &amp;#40;strpos&amp;#40;&amp;#64;&amp;#36;_SERVER&amp;#91;&amp;#39;CONTENT_TYPE&amp;#39;&amp;#93;, &amp;#39;application&amp;#47;json&amp;#39;&amp;#41; &amp;#33;&amp;#61;&amp;#61; 0&amp;#41;&amp;#41;&lt;/p&gt;&lt;p&gt;now I&amp;#168;m getting undefined instead fo hello message &amp;#58;-&amp;#40;&lt;/p&gt;</description><author>Dzonny</author><pubDate>Sun, 06 Jan 2008 12:19:40 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: b has no properties 20080106121940P</guid></item><item><title>CREATED ISSUE: b has no properties</title><link>http://www.codeplex.com/phpmsajax/WorkItem/View.aspx?WorkItemId=4997</link><description>Trying your hello example creates &amp;#34;b has no properties&amp;#34; error in MicrosoftAjax.js line 5.&lt;br /&gt;When changing script source from MicrosoftAjax.js to MicrosoftAjax.debug.js is says&amp;#58;&lt;br /&gt;Chyba&amp;#58; &amp;#91;Exception... &amp;#34;&amp;#39;Sys.Net.WebServiceFailedException&amp;#58; Sys.Net.WebServiceFailedException&amp;#58; The server method &amp;#39;SayHello&amp;#39; returned invalid data. The &amp;#39;d&amp;#39; property is missing from the JSON wrapper.&amp;#39; when calling method&amp;#58; &amp;#91;nsIOnReadyStateChangeHandler&amp;#58;&amp;#58;handleEvent&amp;#93;&amp;#34;  nsresult&amp;#58; &amp;#34;0x8057001c &amp;#40;NS_ERROR_XPC_JS_THREW_JS_OBJECT&amp;#41;&amp;#34;  location&amp;#58; &amp;#34;&amp;#60;unknown&amp;#62;&amp;#34;  data&amp;#58; no&amp;#93;&lt;br /&gt;&lt;br /&gt;Using PHP PHP 5.2.5, Apache 2.2.6, Windows XP Pro, FireFox 2.0.0.11&lt;br /&gt;</description><author>Dzonny</author><pubDate>Sun, 06 Jan 2008 11:48:19 GMT</pubDate><guid isPermaLink="false">CREATED ISSUE: b has no properties 20080106114819A</guid></item><item><title>COMMENTED ISSUE: $_SERVER variable HTTP_CONTENT_TYPE doesn't exist -- Still an Issue</title><link>http://www.codeplex.com/phpmsajax/WorkItem/View.aspx?WorkItemId=415</link><description>Here is the correct way to solve it:

if ((isset($_SERVER['HTTP_CONTENT_TYPE']) &amp;&amp; strpos($_SERVER['HTTP_CONTENT_TYPE'], 'application/json') !== 0) 
  || (isset($_SERVER['CONTENT_TYPE']) &amp;&amp; strpos($_SERVER['CONTENT_TYPE'], 'application/json') !== 0))
{
  header('HTTP/1.0 500 Internal Server Error');
  throw new Exception('Wrong content-type, should be application/json');
} Comments: ** Comment from web user: bencornwell ** &lt;p&gt;actually - that should be&lt;/p&gt;&lt;p&gt;if&amp;#40; array_key_exists&amp;#40; &amp;#39;CONTENT_TYPE&amp;#39;, &amp;#36;_SERVER &amp;#41; &amp;#41; &amp;#123; &amp;#47;&amp;#47;do something &amp;#125; &lt;/p&gt;&lt;p&gt;Standard argument ordering isn&amp;#39;t one of PHP&amp;#39;s strong points &amp;#59;&amp;#41;&lt;/p&gt;</description><author>bencornwell</author><pubDate>Mon, 25 Jun 2007 13:40:08 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: $_SERVER variable HTTP_CONTENT_TYPE doesn't exist -- Still an Issue 20070625014008P</guid></item><item><title>COMMENTED ISSUE: $_SERVER variable HTTP_CONTENT_TYPE doesn't exist -- Still an Issue</title><link>http://www.codeplex.com/phpmsajax/WorkItem/View.aspx?WorkItemId=415</link><description>Here is the correct way to solve it:

if ((isset($_SERVER['HTTP_CONTENT_TYPE']) &amp;&amp; strpos($_SERVER['HTTP_CONTENT_TYPE'], 'application/json') !== 0) 
  || (isset($_SERVER['CONTENT_TYPE']) &amp;&amp; strpos($_SERVER['CONTENT_TYPE'], 'application/json') !== 0))
{
  header('HTTP/1.0 500 Internal Server Error');
  throw new Exception('Wrong content-type, should be application/json');
} Comments: ** Comment from web user: bencornwell ** &lt;p&gt;Hi Steve - just caught your presentation at ReMIX07 and thought I&amp;#39;d check out the phpmsajax project. &lt;/p&gt;&lt;p&gt;I hit the issue described above - it&amp;#39;s actually a PHP5 -&amp;#62; PHP4 legacy issue. PHP5 &amp;#40;strict mode&amp;#41; will generate an error if the array index you&amp;#39;re trying to access doesn&amp;#39;t exist, while PHP4 &amp;#40;or PHP5 running a more forgiving error_reporting&amp;#40;&amp;#41; setting&amp;#41; won&amp;#39;t. &lt;/p&gt;&lt;p&gt;Further, the isset&amp;#40;&amp;#41; probably isn&amp;#39;t the best way to test this condition either - the best way I&amp;#39;ve come across is&amp;#58;  if&amp;#40; array_key_exists&amp;#40; &amp;#36;_SERVER, &amp;#39;CONTENT_TYPE&amp;#39;&amp;#41; &amp;#41; &amp;#123; &amp;#47;&amp;#47;do something &amp;#125;&lt;/p&gt;&lt;p&gt;Happy to submit a patch - just let me know how &amp;#58;&amp;#41;&lt;/p&gt;</description><author>bencornwell</author><pubDate>Mon, 25 Jun 2007 13:33:28 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: $_SERVER variable HTTP_CONTENT_TYPE doesn't exist -- Still an Issue 20070625013328P</guid></item><item><title>CREATED ISSUE: solution of how to cast to an arbitrary class</title><link>http://www.codeplex.com/phpmsajax/WorkItem/View.aspx?WorkItemId=1235</link><description>PHP maintains a generic empty class stdClass from which all class are built in PHP. You can use that class to create generic class objects anytime you wish.

&lt;code&gt;
$class = new stdClass();
$class-&gt;randomProperty1 = 'foo';
$class-&gt;randomProperty2 = 'bar';
&lt;/code&gt;

Aditionally, PHP5 supports object cloning. http://us2.php.net/manual/en/language.oop5.cloning.php </description><author>heygrady</author><pubDate>Wed, 25 Apr 2007 21:33:27 GMT</pubDate><guid isPermaLink="false">CREATED ISSUE: solution of how to cast to an arbitrary class 20070425093327P</guid></item><item><title>CLOSED ISSUE: $_SERVER variable HTTP_CONTENT_TYPE doesn't exist -- Still an Issue</title><link>http://www.codeplex.com/phpmsajax/WorkItem/View.aspx?WorkItemId=415</link><description>Here is the correct way to solve it:

if ((isset($_SERVER['HTTP_CONTENT_TYPE']) &amp;&amp; strpos($_SERVER['HTTP_CONTENT_TYPE'], 'application/json') !== 0) 
  || (isset($_SERVER['CONTENT_TYPE']) &amp;&amp; strpos($_SERVER['CONTENT_TYPE'], 'application/json') !== 0))
{
  header('HTTP/1.0 500 Internal Server Error');
  throw new Exception('Wrong content-type, should be application/json');
} </description><author>SteveMarx</author><pubDate>Wed, 25 Apr 2007 21:08:12 GMT</pubDate><guid isPermaLink="false">CLOSED ISSUE: $_SERVER variable HTTP_CONTENT_TYPE doesn't exist -- Still an Issue 20070425090812P</guid></item><item><title>COMMENTED ISSUE: $_SERVER variable HTTP_CONTENT_TYPE doesn't exist -- Still an Issue</title><link>http://www.codeplex.com/phpmsajax/WorkItem/View.aspx?WorkItemId=415</link><description>Here is the correct way to solve it:

if ((isset($_SERVER['HTTP_CONTENT_TYPE']) &amp;&amp; strpos($_SERVER['HTTP_CONTENT_TYPE'], 'application/json') !== 0) 
  || (isset($_SERVER['CONTENT_TYPE']) &amp;&amp; strpos($_SERVER['CONTENT_TYPE'], 'application/json') !== 0))
{
  header('HTTP/1.0 500 Internal Server Error');
  throw new Exception('Wrong content-type, should be application/json');
} Comments: ** Comment from web user: SteveMarx ** &lt;p&gt;How is that different from what I did&amp;#63;&lt;/p&gt;</description><author>SteveMarx</author><pubDate>Wed, 25 Apr 2007 21:08:11 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: $_SERVER variable HTTP_CONTENT_TYPE doesn't exist -- Still an Issue 20070425090811P</guid></item><item><title>CREATED ISSUE: $_SERVER variable HTTP_CONTENT_TYPE doesn't exist -- Still an Issue</title><link>http://www.codeplex.com/phpmsajax/WorkItem/View.aspx?WorkItemId=415</link><description>Here is the correct way to solve it:

if ((isset($_SERVER['HTTP_CONTENT_TYPE']) &amp;&amp; strpos($_SERVER['HTTP_CONTENT_TYPE'], 'application/json') !== 0) 
  || (isset($_SERVER['CONTENT_TYPE']) &amp;&amp; strpos($_SERVER['CONTENT_TYPE'], 'application/json') !== 0))
{
  header('HTTP/1.0 500 Internal Server Error');
  throw new Exception('Wrong content-type, should be application/json');
} </description><author>cpradio</author><pubDate>Wed, 25 Apr 2007 21:08:11 GMT</pubDate><guid isPermaLink="false">CREATED ISSUE: $_SERVER variable HTTP_CONTENT_TYPE doesn't exist -- Still an Issue 20070425090811P</guid></item><item><title>CLOSED ISSUE: $_SERVER variable HTTP_CONTENT_TYPE doesn't exist</title><link>http://www.codeplex.com/phpmsajax/WorkItem/View.aspx?WorkItemId=395</link><description>See the first comment at http://ajaxian.com/archives/php-for-microsoft-ajax-library.  Billy reports that his machine (running PHP5.2) doesn't have this variable. </description><author>SteveMarx</author><pubDate>Wed, 25 Apr 2007 21:07:36 GMT</pubDate><guid isPermaLink="false">CLOSED ISSUE: $_SERVER variable HTTP_CONTENT_TYPE doesn't exist 20070425090736P</guid></item><item><title>CREATED ISSUE: $_SERVER variable HTTP_CONTENT_TYPE doesn't exist</title><link>http://www.codeplex.com/phpmsajax/WorkItem/View.aspx?WorkItemId=395</link><description>See the first comment at http://ajaxian.com/archives/php-for-microsoft-ajax-library.  Billy reports that his machine (running PHP5.2) doesn't have this variable. </description><author>SteveMarx</author><pubDate>Wed, 25 Apr 2007 21:07:34 GMT</pubDate><guid isPermaLink="false">CREATED ISSUE: $_SERVER variable HTTP_CONTENT_TYPE doesn't exist 20070425090734P</guid></item><item><title>CREATED ISSUE: solution of how to cast to an arbitrary class</title><link>http://www.codeplex.com/phpmsajax/WorkItem/View.aspx?WorkItemId=996</link><description>PHP maintains a generic empty class stdClass from which all class are built in PHP. You can use that class to create generic class objects anytime you wish.

&lt;code&gt;
$class = new stdClass();
$class-&gt;randomProperty1 = 'foo';
$class-&gt;randomProperty2 = 'bar';
&lt;/code&gt;

Aditionally, PHP5 supports object cloning. http://us2.php.net/manual/en/language.oop5.cloning.php </description><author>heygrady</author><pubDate>Tue, 13 Mar 2007 07:00:26 GMT</pubDate><guid isPermaLink="false">CREATED ISSUE: solution of how to cast to an arbitrary class 20070313070026A</guid></item><item><title>CLOSED ISSUE: $_SERVER variable HTTP_CONTENT_TYPE doesn't exist -- Still an Issue</title><link>http://www.codeplex.com/phpmsajax/WorkItem/View.aspx?WorkItemId=113</link><description>Here is the correct way to solve it:

if ((isset($_SERVER['HTTP_CONTENT_TYPE']) &amp;&amp; strpos($_SERVER['HTTP_CONTENT_TYPE'], 'application/json') !== 0) 
  || (isset($_SERVER['CONTENT_TYPE']) &amp;&amp; strpos($_SERVER['CONTENT_TYPE'], 'application/json') !== 0))
{
  header('HTTP/1.0 500 Internal Server Error');
  throw new Exception('Wrong content-type, should be application/json');
} Comments: Resolved with changeset 2998.</description><author>SteveMarx</author><pubDate>Mon, 05 Mar 2007 07:02:39 GMT</pubDate><guid isPermaLink="false">CLOSED ISSUE: $_SERVER variable HTTP_CONTENT_TYPE doesn't exist -- Still an Issue 20070305070239A</guid></item><item><title>COMMENTED ISSUE: $_SERVER variable HTTP_CONTENT_TYPE doesn't exist -- Still an Issue</title><link>http://www.codeplex.com/phpmsajax/WorkItem/View.aspx?WorkItemId=113</link><description>Here is the correct way to solve it:

if ((isset($_SERVER['HTTP_CONTENT_TYPE']) &amp;&amp; strpos($_SERVER['HTTP_CONTENT_TYPE'], 'application/json') !== 0) 
  || (isset($_SERVER['CONTENT_TYPE']) &amp;&amp; strpos($_SERVER['CONTENT_TYPE'], 'application/json') !== 0))
{
  header('HTTP/1.0 500 Internal Server Error');
  throw new Exception('Wrong content-type, should be application/json');
} Comments: ** Comment from web user: SteveMarx ** &lt;p&gt;How is that different from what I did&amp;#63;&lt;/p&gt;</description><author>SteveMarx</author><pubDate>Sun, 28 Jan 2007 09:29:10 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: $_SERVER variable HTTP_CONTENT_TYPE doesn't exist -- Still an Issue 20070128092910A</guid></item><item><title>CREATED ISSUE: $_SERVER variable HTTP_CONTENT_TYPE doesn't exist -- Still an Issue</title><link>http://www.codeplex.com/phpmsajax/WorkItem/View.aspx?WorkItemId=113</link><description>Here is the correct way to solve it:

if ((isset($_SERVER['HTTP_CONTENT_TYPE']) &amp;&amp; strpos($_SERVER['HTTP_CONTENT_TYPE'], 'application/json') !== 0) 
  || (isset($_SERVER['CONTENT_TYPE']) &amp;&amp; strpos($_SERVER['CONTENT_TYPE'], 'application/json') !== 0))
{
  header('HTTP/1.0 500 Internal Server Error');
  throw new Exception('Wrong content-type, should be application/json');
} </description><author>cpradio</author><pubDate>Sat, 27 Jan 2007 01:12:56 GMT</pubDate><guid isPermaLink="false">CREATED ISSUE: $_SERVER variable HTTP_CONTENT_TYPE doesn't exist -- Still an Issue 20070127011256A</guid></item><item><title>CLOSED ISSUE: $_SERVER variable HTTP_CONTENT_TYPE doesn't exist</title><link>http://www.codeplex.com/phpmsajax/WorkItem/View.aspx?WorkItemId=92</link><description>See the first comment at http://ajaxian.com/archives/php-for-microsoft-ajax-library.  Billy reports that his machine (running PHP5.2) doesn't have this variable. Comments: Resolved with changeset 368.</description><author>SteveMarx</author><pubDate>Wed, 24 Jan 2007 19:21:48 GMT</pubDate><guid isPermaLink="false">CLOSED ISSUE: $_SERVER variable HTTP_CONTENT_TYPE doesn't exist 20070124072148P</guid></item><item><title>CREATED ISSUE: $_SERVER variable HTTP_CONTENT_TYPE doesn't exist</title><link>http://www.codeplex.com/phpmsajax/WorkItem/View.aspx?WorkItemId=92</link><description>See the first comment at http://ajaxian.com/archives/php-for-microsoft-ajax-library.  Billy reports that his machine (running PHP5.2) doesn't have this variable. </description><author>SteveMarx</author><pubDate>Wed, 24 Jan 2007 19:02:32 GMT</pubDate><guid isPermaLink="false">CREATED ISSUE: $_SERVER variable HTTP_CONTENT_TYPE doesn't exist 20070124070232P</guid></item></channel></rss>