<?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>All things Sysadmin &#187; php</title>
	<atom:link href="http://northernmost.org/blog/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://northernmost.org/blog</link>
	<description>Just another manic Monday</description>
	<lastBuildDate>Thu, 18 Aug 2011 01:56:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>PHP 5.1 and 5.2 and MySQL 5.1.20+</title>
		<link>http://northernmost.org/blog/php-51-and-52-and-mysql-5120/</link>
		<comments>http://northernmost.org/blog/php-51-and-52-and-mysql-5120/#comments</comments>
		<pubDate>Fri, 22 Feb 2008 22:01:04 +0000</pubDate>
		<dc:creator>Erik Ljungstrom</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[Webservers]]></category>
		<category><![CDATA[compile errors]]></category>
		<category><![CDATA[gptr]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysqli]]></category>

		<guid isPermaLink="false">http://northernmost.org/blog/php-51-and-52-and-mysql-5120/</guid>
		<description><![CDATA[Today I fell victim of a gotcha when custom compiling PHP 5.1.4 for a customer which runs MySQL 5.1.22. The customer in question requires the mysqli component which appears to be broken with these versions (fixed in 5.2.4 though). So &#8230; <a href="http://northernmost.org/blog/php-51-and-52-and-mysql-5120/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Today I fell victim of a gotcha when custom compiling PHP 5.1.4 for a customer which runs MySQL 5.1.22. The customer in question requires the mysqli component which appears to be broken with these versions (fixed in 5.2.4 though).  So if you configure PHP with <code>--with-mysqli=/usr/bin/mysql_config</code> enabled you will soon find yourself staring at:</p>
<p><code>/usr/local/src/php-5.1.4/ext/mysqli/mysqli_api.c: In function 'zif_mysqli_stmt_bind_param':<br />
/usr/local/src/php-5.1.4/ext/mysqli/mysqli_api.c:145: error: 'gptr' undeclared (first use in this function)<br />
/usr/local/src/php-5.1.4/ext/mysqli/mysqli_api.c:145: error: (Each undeclared identifier is reported only once<br />
/usr/local/src/php-5.1.4/ext/mysqli/mysqli_api.c:145: error: for each function it appears in.)<br />
/usr/local/src/php-5.1.4/ext/mysqli/mysqli_api.c: In function 'zif_mysqli_stmt_execute':<br />
/usr/local/src/php-5.1.4/ext/mysqli/mysqli_api.c:601: error: 'gptr' undeclared (first use in this function) </code></p>
<p>To fix this, either upgrade to 5.2.4, or if you&#8217;re left with no choice such as myself edit  <font face="Courier New">php-5.1.4/ext/mysqli/mysqli_api.c </font> and replace all occurrances of <code>gptr </code>with <code>char* </code></p>
<p>That ought to get you through the rest of the compilation provided that you&#8217;ve got the rest of your setup correct.</p>
]]></content:encoded>
			<wfw:commentRss>http://northernmost.org/blog/php-51-and-52-and-mysql-5120/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

