<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>NewPush &#187; PHP</title>
	<atom:link href="http://newpush.com/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://newpush.com</link>
	<description>Server Hosting, Data Warehouse Hosting, Collaboration</description>
	<lastBuildDate>Sun, 05 Sep 2010 17:42:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PHP after upgrading to 4.3.10 displays errors: &quot;Warning: Illegal offset type in&#8230;&quot;</title>
		<link>http://newpush.com/2009/05/php-after-upgrading-to-4310-displays-errors-warning-illegal-offset-type-in/</link>
		<comments>http://newpush.com/2009/05/php-after-upgrading-to-4310-displays-errors-warning-illegal-offset-type-in/#comments</comments>
		<pubDate>Sun, 31 May 2009 14:56:32 +0000</pubDate>
		<dc:creator>Balazs</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.wdream.com/?p=268</guid>
		<description><![CDATA[I found this solution originally on Kreny&#8217;s Blog Troubleshooting for &#8220;Warning: Illegal offset type in &#8230;&#8221; in PHP Posted by kreny at December 17, 2004 02:08 AM System Environment: Red Hat 9.0 + Apache 2.0.52 + PHP 4.3.10 + Zend &#8230; <a href="http://newpush.com/2009/05/php-after-upgrading-to-4310-displays-errors-warning-illegal-offset-type-in/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><span class="grey">I found this solution originally on <a href="http://web.archive.org/web/20050912125506/http://weblog.dalouis.com/archives/2004/12/troubleshooting.html">Kreny&#8217;s Blog</a></span></p>
<h3>Troubleshooting for &#8220;Warning: Illegal offset type in &#8230;&#8221; in PHP</h3>
<div class="posted">Posted by kreny at December 17, 2004 02:08 AM</div>
<p><strong>System Environment:</strong><br />
Red Hat 9.0 + <a href="http://www.apache.org/dist/httpd/">Apache 2.0.52</a> + <a href="http://www.php.net/downloads.php">PHP 4.3.10</a> + <a href="http://www.zend.com/store/products/zend-optimizer.php">Zend Optimizer</a> v2.1.0  etc.</p>
<ul>
<li><strong>Description:</strong>I upgraded PHP 4.3.9 to 4.3.10 and when I opened my sites like phpMyAdmin or Nucleus v2.5 beta, the page led to:<br />
<blockquote><p>Warning: Illegal offset type in abc.php on line 91<br />
Warning: Illegal offset type in abc.php on line 108</p></blockquote>
<p>After I downgraded PHP to 4.3.9, everything goes well.  <a name="a000192more"></a></li>
<li><strong>Troubleshooting:</strong>I searched PHP Bugs and found some interesting issues:</li>
<li><a href="http://bugs.php.net/bug.php?id=31116&amp;edit=1">Bug #31116 Pear not working after update to 4.3.10</a></li>
<li><a href="http://bugs.php.net/bug.php?id=30914">Bug #30914 foreach returns the wrong value </a></li>
<p>So I was wondering that the low-version of Zend Optimizer caused the problem.</p>
<p><strong>Upgrading Zend Optimizer to 2.5.7</strong><br />
Please read the <a href="http://www.zend.com/store/products/optimizer-user-guide.php">Zend Optimizer User Guide</a> first.</p>
<blockquote><p># tar -zxvf ZendOptimizer-2\[1\].5.7-linux-glibc21-i386.tar.gz<br />
# cd ZendOptimizer-2.5.7-linux-glibc21-i386<br />
# ./install</p></blockquote>
<p>The following configuration changes have been made:</p>
<blockquote><p>- The php.ini file has been relocated from /usr/local/lib to /usr/local/Zend/etc.<br />
- A symbolic link for the php.ini file has been created in /usr/local/lib.<br />
- The original php.ini was backed up to /usr/local/lib/php.ini-zend_optimizer.bak</p></blockquote>
<p>Some lines updated in php.ini:</p>
<blockquote><p>[Zend]<br />
zend_optimizer.optimization_level=15<br />
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-2.5.7<br />
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-2.5.7<br />
zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so<br />
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so</p></blockquote>
<p>Then restart the apache and recombine the PHP 4.3.10 by using configure in <a href="http://web.archive.org/web/20050422024623/http://weblog.dalouis.com/archives/2004/12/cc_httpd_cee.html">my previous setting</a>, and remember to run:<br />
<em>#libtool &#8211;finish /root/source/apache2/php-4.3.10/libs</em></ul>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fnewpush.com%2F2009%2F05%2Fphp-after-upgrading-to-4310-displays-errors-warning-illegal-offset-type-in%2F&amp;partner=sociable" title="Print"><img src="http://newpush.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fnewpush.com%2F2009%2F05%2Fphp-after-upgrading-to-4310-displays-errors-warning-illegal-offset-type-in%2F&amp;title=PHP%20after%20upgrading%20to%204.3.10%20displays%20errors%3A%20%26quot%3BWarning%3A%20Illegal%20offset%20type%20in...%26quot%3B&amp;bodytext=I%20found%20this%20solution%20originally%20on%20Kreny%27s%20Blog%0D%0ATroubleshooting%20for%20%22Warning%3A%20Illegal%20offset%20type%20in%20...%22%20in%20PHP%0D%0APosted%20by%20kreny%20at%20December%2017%2C%202004%2002%3A08%20AM%0D%0ASystem%20Environment%3A%0D%0ARed%20Hat%209.0%20%2B%20Apache%202.0.52%20%2B%20PHP%204.3.10%20%2B%20Zend%20Optimizer%20v2.1.0%20%20" title="Digg"><img src="http://newpush.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fnewpush.com%2F2009%2F05%2Fphp-after-upgrading-to-4310-displays-errors-warning-illegal-offset-type-in%2F&amp;title=PHP%20after%20upgrading%20to%204.3.10%20displays%20errors%3A%20%26quot%3BWarning%3A%20Illegal%20offset%20type%20in...%26quot%3B&amp;notes=I%20found%20this%20solution%20originally%20on%20Kreny%27s%20Blog%0D%0ATroubleshooting%20for%20%22Warning%3A%20Illegal%20offset%20type%20in%20...%22%20in%20PHP%0D%0APosted%20by%20kreny%20at%20December%2017%2C%202004%2002%3A08%20AM%0D%0ASystem%20Environment%3A%0D%0ARed%20Hat%209.0%20%2B%20Apache%202.0.52%20%2B%20PHP%204.3.10%20%2B%20Zend%20Optimizer%20v2.1.0%20%20" title="del.icio.us"><img src="http://newpush.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fnewpush.com%2F2009%2F05%2Fphp-after-upgrading-to-4310-displays-errors-warning-illegal-offset-type-in%2F&amp;t=PHP%20after%20upgrading%20to%204.3.10%20displays%20errors%3A%20%26quot%3BWarning%3A%20Illegal%20offset%20type%20in...%26quot%3B" title="Facebook"><img src="http://newpush.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fnewpush.com%2F2009%2F05%2Fphp-after-upgrading-to-4310-displays-errors-warning-illegal-offset-type-in%2F&amp;title=PHP%20after%20upgrading%20to%204.3.10%20displays%20errors%3A%20%26quot%3BWarning%3A%20Illegal%20offset%20type%20in...%26quot%3B&amp;annotation=I%20found%20this%20solution%20originally%20on%20Kreny%27s%20Blog%0D%0ATroubleshooting%20for%20%22Warning%3A%20Illegal%20offset%20type%20in%20...%22%20in%20PHP%0D%0APosted%20by%20kreny%20at%20December%2017%2C%202004%2002%3A08%20AM%0D%0ASystem%20Environment%3A%0D%0ARed%20Hat%209.0%20%2B%20Apache%202.0.52%20%2B%20PHP%204.3.10%20%2B%20Zend%20Optimizer%20v2.1.0%20%20" title="Google Bookmarks"><img src="http://newpush.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a  href="http://blogplay.com" title="Blogplay"><img src="http://newpush.com/wp-content/plugins/sociable/images/blogplay.png" title="Blogplay" alt="Blogplay" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="mailto:?subject=PHP%20after%20upgrading%20to%204.3.10%20displays%20errors%3A%20%26quot%3BWarning%3A%20Illegal%20offset%20type%20in...%26quot%3B&amp;body=http%3A%2F%2Fnewpush.com%2F2009%2F05%2Fphp-after-upgrading-to-4310-displays-errors-warning-illegal-offset-type-in%2F" title="email"><img src="http://newpush.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fnewpush.com%2F2009%2F05%2Fphp-after-upgrading-to-4310-displays-errors-warning-illegal-offset-type-in%2F&amp;title=PHP%20after%20upgrading%20to%204.3.10%20displays%20errors%3A%20%26quot%3BWarning%3A%20Illegal%20offset%20type%20in...%26quot%3B&amp;source=NewPush+Server+Hosting%2C+Data+Warehouse+Hosting%2C+Collaboration&amp;summary=I%20found%20this%20solution%20originally%20on%20Kreny%27s%20Blog%0D%0ATroubleshooting%20for%20%22Warning%3A%20Illegal%20offset%20type%20in%20...%22%20in%20PHP%0D%0APosted%20by%20kreny%20at%20December%2017%2C%202004%2002%3A08%20AM%0D%0ASystem%20Environment%3A%0D%0ARed%20Hat%209.0%20%2B%20Apache%202.0.52%20%2B%20PHP%204.3.10%20%2B%20Zend%20Optimizer%20v2.1.0%20%20" title="LinkedIn"><img src="http://newpush.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fnewpush.com%2F2009%2F05%2Fphp-after-upgrading-to-4310-displays-errors-warning-illegal-offset-type-in%2F&amp;partner=sociable" title="PDF"><img src="http://newpush.com/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://ping.fm/ref/?link=http%3A%2F%2Fnewpush.com%2F2009%2F05%2Fphp-after-upgrading-to-4310-displays-errors-warning-illegal-offset-type-in%2F&amp;title=PHP%20after%20upgrading%20to%204.3.10%20displays%20errors%3A%20%26quot%3BWarning%3A%20Illegal%20offset%20type%20in...%26quot%3B&amp;body=I%20found%20this%20solution%20originally%20on%20Kreny%27s%20Blog%0D%0ATroubleshooting%20for%20%22Warning%3A%20Illegal%20offset%20type%20in%20...%22%20in%20PHP%0D%0APosted%20by%20kreny%20at%20December%2017%2C%202004%2002%3A08%20AM%0D%0ASystem%20Environment%3A%0D%0ARed%20Hat%209.0%20%2B%20Apache%202.0.52%20%2B%20PHP%204.3.10%20%2B%20Zend%20Optimizer%20v2.1.0%20%20" title="Ping.fm"><img src="http://newpush.com/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://newpush.com/feed/" title="RSS"><img src="http://newpush.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://slashdot.org/bookmark.pl?title=PHP%20after%20upgrading%20to%204.3.10%20displays%20errors%3A%20%26quot%3BWarning%3A%20Illegal%20offset%20type%20in...%26quot%3B&amp;url=http%3A%2F%2Fnewpush.com%2F2009%2F05%2Fphp-after-upgrading-to-4310-displays-errors-warning-illegal-offset-type-in%2F" title="Slashdot"><img src="http://newpush.com/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="http://twitter.com/home?status=PHP%20after%20upgrading%20to%204.3.10%20displays%20errors%3A%20%26quot%3BWarning%3A%20Illegal%20offset%20type%20in...%26quot%3B%20-%20http%3A%2F%2Fnewpush.com%2F2009%2F05%2Fphp-after-upgrading-to-4310-displays-errors-warning-illegal-offset-type-in%2F" title="Twitter"><img src="http://newpush.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://newpush.com/2009/05/php-after-upgrading-to-4310-displays-errors-warning-illegal-offset-type-in/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
