ID: 25963
Updated by: [email][/email]
Reported By: edechaux at irci dot fr
-Status: Open
+Status: Suspended
Bug Type: PostgreSQL related
-Operating System: Linux 2.4.21
+Operating System: *
PHP Version: 4.3.3
-Assigned To:
+Assigned To: helly
New Comment:

Is already fixed in PHP 5. Fix will be committed for 4.3.5 or whatever
comes next, too. For 4.3.3 we are to far in the release process.

Previous Comments:

[2003-10-24 09:35:53] edechaux at irci dot fr

I tried with the lastest CVS and there is no changes.

Here is a sample code :

----file toto.php----
if (! pg_connect ('blablabla')) {
echo '{' . $php_errormsg . '}';

I execute 'php toto.php'. It displays :

{Unable to connect to PostgreSQL server: missing "=" after "blablabla"
in connection info string

As you can see there is a newline character between 'string' and '.'.

This newline character mess up the html code if you d'ont remove it...

It still works, but it break your html code format :p


[2003-10-23 14:02:02] [email][/email]

Please try using this CVS snapshot:


For Windows:


If that doesn\'t help please send a short example.


[2003-10-23 05:50:09] edechaux at irci dot fr

When a connection to a Postgres database fails, the error message which
is in the $php_errormsg variable ends with the following string :

The final '.' is quite anoying because you just can't 'trim' the
$php_errormsg, you must 'trim ($php_errormsg, "\n.")' to remove the dot
and the newline characters.

Could it be possible to remove the final dot, or even the final '\n\n.'
string ?



Edit this bug report at [url][/url]