php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12672 ifx_connect does not return when base not present
Submitted: 2001-08-09 04:09 UTC Modified: 2001-08-10 04:49 UTC
From: matjaz dot ostroversnik at zrs-tk dot si Assigned:
Status: Not a bug Package: Informix related
PHP Version: 4.0.6 OS: Linux RH 6.2
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: matjaz dot ostroversnik at zrs-tk dot si
New email:
PHP Version: OS:

 

 [2001-08-09 04:09 UTC] matjaz dot ostroversnik at zrs-tk dot si
(command line mode)
if the database (i.e. informix) is not up
the ifx_connect function hangs. 
One would expect to return some meaningfull information.

OS:
Linux giant-a 2.2.14-5.0smp #1 SMP Tue Mar 7 21:01:40 EST 2000 i686 unknown
conf:
./configure' --enable-trans-sid' '--enable-dbase' '--enable-track-vars' '--with-informix' '--with-t1lib=/usr/local/src/T1-1.0.1/' '--with-zlib-dir=/usr/local/src/zlib-1.1.3/' '--with-gd=/usr/local/src/gd-1.8.4/' '--with-jpeg-dir=/usr/local/src/jpeg-6b/' '--with-ttf=/usr/local/src/freetype-1.3.1/' '--with-png-dir=/usr/local/src/libpng-1.0.8/'

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-09 08:22 UTC] alindeman@php.net
please include a sample script...
 [2001-08-09 09:59 UTC] matjaz dot ostroversnik at zrs-tk dot si
<?
 echo ("before\n");
 $id = ifx_connect("base","user","pass");
 echo ("after\n");
?>

if ifx is up you get
before
after
otherwise you get
before
(program does not return)
 [2001-08-09 16:33 UTC] sniper@php.net
I tried this with latest CVS and it works just fine.
ie. it gives an error for it.

Please try it: http://www.php.net/

--Jani

 [2001-08-09 16:34 UTC] sniper@php.net
Oops. The correct url to snapshots is: http://snaps.php.net/

--Jani

 [2001-08-10 03:26 UTC] matjaz dot ostroversnik at zrs-tk dot si
I've built the php4.0.7-dev as you suggested. There
is a lot of differences in ifx.ec file, but unfortunatelly
it doesn't work. Symptoms are the same.

I've checked on our production computer with 4.0.3pl1.
It's the same.

I am using gcc 2.95.3 with --enable-shared and --enable-threads. Which compiler/settings do you use ?
 [2001-08-10 03:37 UTC] sniper@php.net
What does this script output for you:

<?php

error_reporting(E_ALL);
$pp = ifx_connect("base", "user", "pass");
print_r($pp);

?>

The compiler / configure options don't matter here.

--Jani

 [2001-08-10 03:50 UTC] matjaz dot ostroversnik at zrs-tk dot si
if ifx is up
Resource id #1
if ifx is down the program does not return.
 [2001-08-10 04:27 UTC] sniper@php.net
What do you mean by 'Does not return' ?
And with which version of PHP did you try this?

--Jani
 [2001-08-10 04:46 UTC] matjaz dot ostroversnik at zrs-tk dot si
I tried this with the last build (/usr/local/src/php4-200108092235).

Does not return mean that I have to use Ctrl/c
to exit the program. That was my initial bug report.

Meantime I written short esql/c program (no php) and
the same thing happens. It must be something wrong with
our db instalation.

bug #12672 is actually nonexistent.

Thanks for your time.
 [2001-08-10 04:49 UTC] sniper@php.net
Bogus then.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 06:01:29 2025 UTC