Bug #17810 Updated: Fatal Error: Call to undefined function: dirname()

From: Date: Tue, 18 Jun 2002 08:53:58 +0000
Subject: Bug #17810 Updated: Fatal Error: Call to undefined function: dirname()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-11066@lists.php.net to get a copy of this message
ID: 17810 Updated by: fabien.dehopre@itn.skynet.be Reported By: fabien.dehopre@itn.skynet.be Status: Open Bug Type: *Web Server problem Operating System: Windows 2000 Server PHP Version: 4.2.1 New Comment: Now when we make a charge test with +/- 4 RPS we get sometime "parse error" and other time we don't get this parse error. We are in ISAPI because the CGI version use a lot of resources. Previous Comments: ------------------------------------------------------------------------ [2002-06-18 04:18:42] fabien.dehopre@itn.skynet.be I use ADODB for PHP (http://php.weblogs.com/ADODB). We use a MS SQL database. there is a script that can reproduce the error (it's not sure). <?php require_once("./db/adodb.inc.php"); $db = &ADONewConnection("mssql"); $db->Connect("xxx.xxx.xxx.xxx","user","password","db_name"); $query = "SELECT TOP 10 * FROM table_name"; $rs = $db->Execute($query); while (!$rs->EOF) { $obj = $rs->fetchNextObject(false); print_r($obj); print '<hr>'; } $rs->Close(); $db->Close(); ?> ------------------------------------------------------------------------ [2002-06-18 04:13:28] mfischer@php.net Please also try the CGI version, the ISAPI version is known to be very unstable. ------------------------------------------------------------------------ [2002-06-18 04:07:35] derick@php.net please provide a short script which allows us to reproduce this problem. Derick ------------------------------------------------------------------------ [2002-06-18 04:05:55] fabien.dehopre@itn.skynet.be We have installed PHP 4.2.1 on Windows 2000 Server (IIS 5.0) as an ISAPI Filter. When we make a charge test (+/- 15 requests per second), the php returns a "Fatal Error: Call to undefined function: dirname()" after +/- 70 seconds of this test. After the test, the php always returns this error until we restart the server. Sometime, we have also an ISAPI access violation at address xxxxxxxx (I don't remember what address) and we must restart the server to resolve this error. Php is installed with ASP and ColdFusion. There is a response from the server when the error occurs: ---------------------------------------------------------- HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Mon, 17 Jun 2002 15:59:03 GMT Content-type: text/html X-Powered-By: PHP/4.2.1 &lt;br /&gt; &lt;b&gt;Fatal error&lt;/b&gt;: Call to undefined function: dirname() in &lt;b&gt;D:\Webcontent\skypass_priv\db\adodb.inc.php&lt;/b&gt; on line &lt;b&gt;42&lt;/b&gt;&lt;br /&gt; ---------------------------------------------------------- ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17810&edit=1

« previous php.bugs (#11066) next »