|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2311 Cannot get Character Field out of PostgreSQL 6.5.0
Submitted: 1999-09-15 17:21 UTC Modified: 1999-09-15 17:36 UTC
From: wst at topmail dot de Assigned:
Status: Closed Package: PostgreSQL related
PHP Version: 3.0.12 OS: SuSE Linux 6.0 (Kernel 2.0.36)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
38 + 44 = ?
Subscribe to this entry?

 [1999-09-15 17:21 UTC] wst at topmail dot de
The following code results in "Nothing"-Output:

$mystring = (string)pg_result($kat_result, $kat_i, "kat_name");
echo "$my_string";

Gives the same result with or without string-casting.

The same query in psql works very well. "kat_name" is a CHARACTER(40) field. I can retrieve and display an integer field out of the same table and row without any problems.

My configuration:
486/100 - 32 MB Memory
SuSE Linux 6.0 - Kernel 2.0.36
Apache 1.3.6
PostgreSQL 6.5.0 (compiled by gcc
PHP 3.0.12 running as CGI.

Please help.
Thanks in adv.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1999-09-15 17:36 UTC] eschmid at cvs dot php dot net
Closed (realy). 
That is not a PHP bug.  Echo a $mystring and not a $my_string. 

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sat May 21 13:05:45 2022 UTC