#36169 [Opn->Fbk]: mysql_connet not work under exec (system, passthru,etc)

From: Date: Thu, 26 Jan 2006 16:17:32 +0000
Subject: #36169 [Opn->Fbk]: mysql_connet not work under exec (system, passthru,etc)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-92517@lists.php.net to get a copy of this message
 ID:               36169
 Updated by:       tony2001@php.net
 Reported By:      admin at ipfree dot ru
-Status:           Open
+Status:           Feedback
 Bug Type:         MySQL related
 Operating System: Linux Fedora4
 PHP Version:      4.4.2
 New Comment:

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


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

[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


Thread (5 messages)

« previous php.bugs (#92517) next »