<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.keeganm.com/index.php?action=history&amp;feed=atom&amp;title=PHP_4_errors</id>
	<title>PHP 4 errors - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.keeganm.com/index.php?action=history&amp;feed=atom&amp;title=PHP_4_errors"/>
	<link rel="alternate" type="text/html" href="http://wiki.keeganm.com/index.php?title=PHP_4_errors&amp;action=history"/>
	<updated>2026-09-16T04:41:43Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>http://wiki.keeganm.com/index.php?title=PHP_4_errors&amp;diff=6&amp;oldid=prev</id>
		<title>Keegan: /* PHP 4.4.8 and Mssql / FreeTDS issue */</title>
		<link rel="alternate" type="text/html" href="http://wiki.keeganm.com/index.php?title=PHP_4_errors&amp;diff=6&amp;oldid=prev"/>
		<updated>2009-10-14T21:22:23Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;PHP 4.4.8 and Mssql / FreeTDS issue&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:22, 14 October 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l27&quot; &gt;Line 27:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 27:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;All i did was edit that file so that everything was on one line. Compiled just fine after that. Not sure if it affected anything by not having the line breaks or now.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;All i did was edit that file so that everything was on one line. Compiled just fine after that. Not sure if it affected anything by not having the line breaks or now.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==PHP 4.4.8 and Mssql / FreeTDS issue==&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==PHP 4.4.8 and Mssql / FreeTDS issue==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l42&quot; &gt;Line 42:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 43:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Mitigation===&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Mitigation===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;I was compiling php with both mssql support and sybase -- this caused some kind of conflict. Disabling sybase in my configure flags fixed the issue.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;I was compiling php with both mssql support and sybase -- this caused some kind of conflict. Disabling sybase in my configure flags fixed the issue.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==PHP 4x / FreeTDS error==&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==PHP 4x / FreeTDS error==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Keegan</name></author>
	</entry>
	<entry>
		<id>http://wiki.keeganm.com/index.php?title=PHP_4_errors&amp;diff=5&amp;oldid=prev</id>
		<title>Keegan: Created page with &#039;==PHP 4.3.5 Compile error== ===Error=== &lt;pre&gt;     In file included from /usr/local/src/php-4.3.5/ext/xslt/sablot.c:36:     /usr/local/src/php-4.3.5/include/php_sab_info.h:2: erro…&#039;</title>
		<link rel="alternate" type="text/html" href="http://wiki.keeganm.com/index.php?title=PHP_4_errors&amp;diff=5&amp;oldid=prev"/>
		<updated>2009-10-14T21:21:31Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;==PHP 4.3.5 Compile error== ===Error=== &amp;lt;pre&amp;gt;     In file included from /usr/local/src/php-4.3.5/ext/xslt/sablot.c:36:     /usr/local/src/php-4.3.5/include/php_sab_info.h:2: erro…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==PHP 4.3.5 Compile error==&lt;br /&gt;
===Error===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    In file included from /usr/local/src/php-4.3.5/ext/xslt/sablot.c:36:&lt;br /&gt;
    /usr/local/src/php-4.3.5/include/php_sab_info.h:2: error: syntax error before &amp;#039;:&amp;#039; token&lt;br /&gt;
    /usr/local/src/php-4.3.5/include/php_sab_info.h:3: error: missing terminating &amp;quot; character&lt;br /&gt;
    In file included from /usr/include/fcntl.h:23,&lt;br /&gt;
    from /usr/local/src/php-4.3.5/ext/xslt/sablot.c:44:&lt;br /&gt;
    /usr/include/sys/fcntl.h:184: error: syntax error before &amp;#039;}&amp;#039; token&lt;br /&gt;
    /usr/local/src/php-4.3.5/ext/xslt/sablot.c: In function `zm_info_xslt&amp;#039;:&lt;br /&gt;
    /usr/local/src/php-4.3.5/ext/xslt/sablot.c:201: error: missing terminating &amp;quot; character&lt;br /&gt;
    /usr/local/src/php-4.3.5/ext/xslt/sablot.c:201: error: syntax error before &amp;#039;)&amp;#039; token&lt;br /&gt;
    /usr/local/src/php-4.3.5/ext/xslt/sablot.c: In function `zif_xslt_backend_info&amp;#039;:&lt;br /&gt;
    /usr/local/src/php-4.3.5/ext/xslt/sablot.c:797: error: missing terminating &amp;quot; character&lt;br /&gt;
    /usr/local/src/php-4.3.5/ext/xslt/sablot.c:797: error: syntax error before &amp;#039;)&amp;#039; token&lt;br /&gt;
    /usr/local/src/php-4.3.5/ext/xslt/sablot.c:797: error: missing terminating &amp;quot; character&lt;br /&gt;
    /usr/local/src/php-4.3.5/ext/xslt/sablot.c:797: error: too few arguments to function `strlen&amp;#039;&lt;br /&gt;
    make: *** [ext/xslt/sablot.lo] Error 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Mitigation===&lt;br /&gt;
&lt;br /&gt;
Not sure exactly what the deal with this was. I looked at the file that had the syntax error (/usr/local/src/php-4.3.5/include/php_sab_info.h), and noticed it was on 3 separate lines, like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    #define SAB_INFO &amp;quot;Cflags: -g -O2&lt;br /&gt;
    Libs: -L/usr/local/lib -liconv -lexpat&lt;br /&gt;
    Prefix: /usr/local&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
All i did was edit that file so that everything was on one line. Compiled just fine after that. Not sure if it affected anything by not having the line breaks or now.&lt;br /&gt;
&lt;br /&gt;
==PHP 4.4.8 and Mssql / FreeTDS issue==&lt;br /&gt;
===Error===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    As seen in the apache error log:&lt;br /&gt;
    ...&lt;br /&gt;
    PHP Warning: Function registration failed - duplicate name - mssql_data_seek in Unknown on line 0&lt;br /&gt;
    PHP Warning: Function registration failed - duplicate name - mssql_field_seek in Unknown on line 0&lt;br /&gt;
    PHP Warning: Function registration failed - duplicate name - mssql_result in Unknown on line 0&lt;br /&gt;
    PHP Warning: Function registration failed - duplicate name - mssql_min_error_severity in Unknown on line 0&lt;br /&gt;
    PHP Warning: Function registration failed - duplicate name - mssql_min_message_severity in Unknown on line 0&lt;br /&gt;
    PHP Warning: mssql: Unable to register functions, unable to load in Unknown on line 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Mitigation===&lt;br /&gt;
I was compiling php with both mssql support and sybase -- this caused some kind of conflict. Disabling sybase in my configure flags fixed the issue.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==PHP 4x / FreeTDS error==&lt;br /&gt;
===Error===&lt;br /&gt;
    When compiling php 4.4.8:&lt;br /&gt;
    checking for MSSQL support via FreeTDS... yes&lt;br /&gt;
    configure: error: Directory /usr/local/ is not a FreeTDS installation directory&lt;br /&gt;
&lt;br /&gt;
===Mitigation===&lt;br /&gt;
I couldn&amp;#039;t find much on google to start with (cause i didn&amp;#039;t read the php manual linke below...doh). I looked in the ./configure script in the php source, and searched for FreeTDS. I was able to locate the error message, and see what conditions had to be met for it to occur.&lt;br /&gt;
&lt;br /&gt;
I compiled fteetds from source, and it appears to not have copied all the correct files over after installation. To get php to compile, i had to copy &amp;lt;freetds src&amp;gt;/include/tds.h to /usr/local/include, and also copy &amp;lt;freetds src&amp;gt;/src/tds/.libs/libtds.a to /usr/local/lib. My prefix for FreeTDS was /usr/local, so you might have to copy to a different directory depending on that.&lt;br /&gt;
&lt;br /&gt;
See more info [http://us.php.net/manual/en/mssql.installation.php|here] and [http://bugs.php.net/bug.php?id=44991&amp;amp;edit=2|here]&lt;/div&gt;</summary>
		<author><name>Keegan</name></author>
	</entry>
</feed>