php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18954 Does sybase-ct not like imap?
Submitted: 2002-08-17 02:22 UTC Modified: 2002-09-21 01:55 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: douchebag at ausborne dot net Assigned:
Status: No Feedback Package: Sybase-ct (ctlib) related
PHP Version: 4.2.2 OS: Mandrake 8.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: douchebag at ausborne dot net
New email:
PHP Version: OS:

 

 [2002-08-17 02:22 UTC] douchebag at ausborne dot 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";

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-17 15:06 UTC] sniper@php.net
What exactly doesn't work? And do you get any errors or something?

 [2002-08-17 15:57 UTC] douchebag at ausborne dot net
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 20:32 UTC] douchebag at ausborne dot net
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 23:19 UTC] sniper@php.net
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-09-21 01:55 UTC] sniper@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 14:01:30 2024 UTC