ID: 17810
Updated by: mfischer@php.net
-Summary: Fatal Error: Call to undefined function: dirname()
Reported By: fabien.dehopre@itn.skynet.be
Status: Open
-Bug Type: *Web Server problem
+Bug Type: IIS related
Operating System: Windows 2000 Server
PHP Version: 4.2.1
New Comment:
I advised you to use the CGI version because there hasn't been much
development on the ISAPI module and I'm not aware anyone is right now
or in the near future working on it.
Updated Summary,Category
Previous Comments:
------------------------------------------------------------------------
[2002-06-18 04:53:58] fabien.dehopre@itn.skynet.be
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.
------------------------------------------------------------------------
[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
<br />
<b>Fatal error</b>: Call to undefined function: dirname()
in <b>D:\Webcontent\skypass_priv\db\adodb.inc.php</b> on
line <b>42</b><br />
----------------------------------------------------------
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17810&edit=1