ID: 32954
User updated by: andreybl at matrix dot co dot il
Reported By: andreybl at matrix dot co dot il
-Status: Feedback
+Status: Open
Bug Type: Informix related
Operating System: Red Hat 3.0 ES
-PHP Version: 4.3.11
+PHP Version: PHP 5.1.0-dev (cgi) (built: May 17 2005 15:15:13)
(DEBUG)
New Comment:
Well, well.
I don know even what to do: cry :( or laugh :)
The good news is that the SEGV problem did not appear.
The bad news is that we still DO HAVE a problem with TEXT fields.
So. I have a table, called "registrars" with few rows. There is a field
in this table, called 'allowedips' and it is of type TEXT. It may have
NULL value. Here is a small test program run on PHP CGI (not Apache
module, but it does not matter):
$conn_id = ifx_connect(..............);
$res_id = ifx_query('SELECT * FROM registrars', $conn_id);
while ($row = ifx_fetch_row($res_id))
{
if (!empty($row['allowedips']))
echo ifx_get_blob($row['allowedips'])."\n";
}
ifx_free_result($res_id);
ifx_close($conn_id);
Instead of the values for the 'allowedips' field I see in the output
the following:
/tmp/blbGmDdPT
/tmp/blb214Nct
/tmp/blbQM8yM2
/tmp/blbuQGH1T
I ran this test several times. And as You can guess the /tmp directory
was full with blb****** emty files.
If in the beginning of the program I put:
ifx_textasvarchar(1);
then:
echo $row['allowedips';
will produce the same output and there will be same emty files.
BTW:
$rc = ifx_get_blob('blabla'); // 'blabla' is not a valid id
produces the Segmentation fault !!! that we all LOVE :)
Previous Comments:
------------------------------------------------------------------------
[2005-05-17 10:36:30] [EMAIL PROTECTED]
That does not matter. (1.3.33 is better though, IMO :)
------------------------------------------------------------------------
[2005-05-17 10:29:54] andreybl at matrix dot co dot il
I see. Well. What Apache version do You want me to use: 1 or 2?
------------------------------------------------------------------------
[2005-05-17 10:24:59] [EMAIL PROTECTED]
Yes, but we're focused on PHP 5 now. If you can check it happens with
PHP 5 too, there's much more interest in fixing it and backporting the
fix to PHP 4 too.
------------------------------------------------------------------------
[2005-05-17 10:23:14] andreybl at matrix dot co dot il
Hi.
You propose me to check with the snapshot of the fifth (5)
version of PHP.
The problem, that I MUST use the fourth (4)
------------------------------------------------------------------------
[2005-05-17 09:07:23] [EMAIL PROTECTED]
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/32954
--
Edit this bug report at http://bugs.php.net/?id=32954&edit=1