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

Marcus, can you MFH now..?

Previous Comments:

[2003-10-25 08:48:23] [email][/email]

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.


[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 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]