ID:               36169
 User updated by:  admin at ipfree dot ru
 Reported By:      admin at ipfree dot ru
-Status:           Feedback
+Status:           Open
 Bug Type:         MySQL related
 Operating System: Linux Fedora4
-PHP Version:      4.4.2
+PHP Version:      5.1.2
 New Comment:

After put 
error_reporting(E_ALL); 
ini_set('display_errors', 1);
in tst2.php I get this error:

<pre>Begin
[1
Fatal error: Call to undefined function mysql_pconnect() in
/www/public_html/tst2.php on line 6

But, I can use mysql_pconnect (and mysql_connect - I try both) from WEB
script and tst1.php run correctly (I check with addition code with sql
query) from shell command line
(cgi mode of php)


Previous Comments:
------------------------------------------------------------------------

[2006-01-26 17:17:31] [EMAIL PROTECTED]

Add error_reporting(E_ALL) and ini_set('display_errors', 1); in the
beginning of tst2.php.

------------------------------------------------------------------------

[2006-01-26 17:13:45] admin at ipfree dot ru

Description:
------------
If mysql_conect executed from script, run from Apache->php exec
program die without notice

Reproduce code:
---------------
WEB script (run under apache)
------------------------------
echo "<pre>Begin\n";
echo exec("php /www/public_html/tst2.php");
------------------------------

tst2.php
---------------------
echo "[1";
mysql_pconnect("localhost:3306", "titan", "qazxdr");
echo "2]";

----------------------

Expected result:
----------------
Begin
[1



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=36169&edit=1

Reply via email to