#18954 [Fbk->Opn]: Does sybase-ct not like imap?

From: Date: Sat, 17 Aug 2002 19:57:07 +0000
Subject: #18954 [Fbk->Opn]: Does sybase-ct not like imap?
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-17149@lists.php.net to get a copy of this message
ID: 18954 User updated by: douchebag@ausborne.net Reported By: douchebag@ausborne.net -Status: Feedback +Status: Open Bug Type: Sybase-ct (ctlib) related Operating System: Mandrake 8.1 PHP Version: 4.2.2 New Comment: There are no errors or anything in my apache logs. It would be nice if there were some errors, but there is not. My error in the browser consists of the "The page cannot be displayed" in IE, and in Mozilla, it says "Document contains no data." Not very helpful, I know. I have set up two Apache servers on my machine, one with imap compiled in and one without. Other than that, they are identical. You can see the result of the same script running on both servers. http://www.ausborne.net/sybasetest.php or http://bad.ausborne.net/sybasetest.php Needless to say, the second one is the bad one. My installation of IMAP is 2000c, the updated RPM from Mandrake for Mandrake 8.1. My Sybase libraries are dated from March 7, 2000. Thanks. Previous Comments: ------------------------------------------------------------------------ [2002-08-17 15:06:51] sniper@php.net What exactly doesn't work? And do you get any errors or something? ------------------------------------------------------------------------ [2002-08-17 02:22:06] douchebag@ausborne.net 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"; ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18954&edit=1

« previous php.bugs (#17149) next »