|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-08-17 15:06 UTC] sniper@php.net
[2002-08-17 15:57 UTC] douchebag at ausborne dot net
[2002-08-17 20:32 UTC] douchebag at ausborne dot net
[2002-08-17 23:19 UTC] sniper@php.net
[2002-09-21 01:55 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 15:00:01 2025 UTC |
My code always worked fine php 4.0.6 with any version of Apache. If I ever tried to upgrade beyond 4.0.6, my Sybase stuff no longer worked, while my MySQL stuff did. It turned out that if I removed --with-imap from my configure line, both Sybase and MySQL did work. I was able to reproduce this on multiple machines with all versions of PHP later than 4.0.6. My Apache/PHP build script looks like this (to break it, just add '--with-imap' to the PHP configure line: #!/bin/sh cd apache_1.3.26 ./configure --prefix=/usr/local/apache cd ../php-4.2.2 ./configure \ --with-apache=../apache_1.3.26 \ --enable-track-vars \ --with-sybase-ct=/opt/sybase make make install cd ../apache_1.3.26 ./configure \ --prefix=/usr/local/apache \ --activate-module=src/modules/php4/libphp4.a \ --enable-module=php4 \ --disable-shared=php4 make make install My test scripts consist of the following: <? // Sybase Test Script $connection = sybase_connect("dbname","username","password") or die ("could not connect to database"); $DOC = $_GET["doc"]; if ($DOC == "Table1") { $Query = "SELECT * FROM Table1"; } elseif ($DOC == "Table2") { $Query = "SELECT * FROM Table2"; } echo " <html> <head> <title>Josh's Test File</title> </head> <body bgcolor='#ffffff'> <a href='?doc=Table1'>Table1</a> | <a href='?doc=Table2'>Table2</a><br>\n"; $GetStuff = sybase_query($Query) or die (sybase_error()); while ($Result = sybase_fetch_array($GetStuff)) { $ThisList = $Result["Item1"]; echo $ThisList."<br>\n"; } echo " </body> </html>\n"; <? // MySQL Test Script $connection = mysql_connect("hostname","username","password") or die ("could not connect to database"); $DOC = $_GET["doc"]; if ($DOC == "Table1") { $Query = "SELECT * FROM Table1"; } elseif ($DOC == "Table2") { $Query = "SELECT * FROM Table2"; } echo " <html> <head> <title>Josh's Test File</title> </head> <body bgcolor='#ffffff'> <a href='?doc=Table1'>Table1</a> | <a href='?doc=Table2'>Table2</a><br>\n"; $ExecQuery = mysql_query($Query) or die (mysql_error()); while ($Result = mysql_fetch_array($ExecQuery)) { $ThisList = $Result["Item1"]; echo $ThisList."<br>\n"; } echo " </body> </html>\n";