ID: 18954 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Feedback +Status: No Feedback Bug Type: Sybase-ct (ctlib) related Operating System: Mandrake 8.1 PHP Version: 4.2.2 New Comment:
No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. Previous Comments: ------------------------------------------------------------------------ [2002-08-17 23:19:14] [EMAIL PROTECTED] Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. ------------------------------------------------------------------------ [2002-08-17 20:32:01] [EMAIL PROTECTED] I'm a complete idiot. I said there were no errors in the log file, but that's because I was looking in the wrong log file. Wow, I'm dumb. Two entries like this following entry get entered into the log file with every time the sybasetest.php file is loaded. It states: [Sat Aug 17 18:22:26 2002] [notice] child pid 24484 exit signal Segmentation fault (11) Hope this is more helpful. ------------------------------------------------------------------------ [2002-08-17 15:57:07] [EMAIL PROTECTED] 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. ------------------------------------------------------------------------ [2002-08-17 15:06:51] [EMAIL PROTECTED] What exactly doesn't work? And do you get any errors or something? ------------------------------------------------------------------------ [2002-08-17 02:22:06] [EMAIL PROTECTED] 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