#49655 [Com]: no page generation unless MySQL will be closed with link identifier $link
ID: 49655
Comment by: mail at rene-schwarz dot com
Reported By: mail at rene-schwarz dot com
Status: Open
Bug Type: MySQL related
Operating System: Windows Server 2003 R2 x64 Datac
PHP Version: 5.3.0
New Comment:
Seems similar to solved bug #7879 some years ago.
Previous Comments:
------------------------------------------------------------------------
[2009-09-24 11:16:31] mail at rene-schwarz dot com
Description:
------------
PHP 5.3.0 generates no output page in case a MySQL connection is closed
without any identifier.
My solution for this problem was to change all PHP scripts to the
following:
$link = @mysql_connect(...);
// some code here
mysql_close($link);
I noticed this error when I'm getting a blank page as output and when I
successively inserted a die() command each line until I got a blank page
(mysql_close() was the reason).
All software / scripts using MySQL has been affected (f.e. RoundCube).
Reproduce code:
---------------
@mysql_connect(...);
// some code here
mysql_close();
Expected result:
----------------
Page generation.
Actual result:
--------------
No page generation -- blank page.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49655&edit=1
Thread (3 messages)