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

From: Date: Sat, 17 Aug 2002 19:06:51 +0000
Subject: #18954 [Opn->Fbk]: Does sybase-ct not like imap?
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-17144@lists.php.net to get a copy of this message
ID: 18954 Updated by: sniper@php.net Reported By: douchebag@ausborne.net -Status: Open +Status: Feedback Bug Type: Sybase-ct (ctlib) related Operating System: Mandrake 8.1 PHP Version: 4.2.2 New Comment: What exactly doesn't work? And do you get any errors or something? Previous Comments: ------------------------------------------------------------------------ [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 (#17144) next »