[PHP-DEV] PHP 4.0 Bug #8303 Updated: ODBC open & close (3 lines script !) repeatedly cause NT crash.

2001-03-05 Thread sniper

ID: 8303
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: ODBC related
Assigned To: 
Comments:

User gave up on this configuration.

--Jani


Previous Comments:
---

[2001-03-05 05:36:51] [EMAIL PROTECTED]
Sorry, 
I'm not using this configuration any more.

Dror p.

---

[2001-02-25 07:49:22] [EMAIL PROTECTED]
Does the problem persist with PHP 4.0.4pl1 or the latest snapshot from 
http://snaps.php.net/?

---

[2000-12-17 12:19:48] [EMAIL PROTECTED]
I wrote a 3 lines script that cause NT to display the following error message after 
being executed number of times. After getting this error I must close and rerun 
apache.

Title - "drwtsn32.exe - DLL initialization Failed"
Message - "Initialization of the dynamic link library C:WINNTsystem32USER32.dll 
failed. The process is terminating abnormally”

I got this error CONSISTENTLY after script was executed 828 times (see script on the 
“on the client side” section). I performed this test several times.

--
On the server side
--
Here is the script:

$MY_DB  = odbc_connect("phptest","","");
odbc_close($MY_DB);
echo "DONE!";

The DB I used is access97, the database itself (phptest) is empty. I created it but I 
didn’t create any table. 
---
On the client side:
---
I used PHP.EXE with the following script:

function my_get_url($url)
{
if (!($fp = fopen($url, "r"))) die("could not open url");

$ret="";
while (!feof ($fp)) {
$buffer = fgets($fp, 1024*10);
$ret.=$buffer;
}
fclose ($fp);
return $ret;
}


for ($i=1; $i<=2000;$i++) {
$s=my_get_url("http://www.mysite.com/mypage.php?id=$i");
$len=strlen($s);
echo "$i] len=$len $sn";
}

--- 
My server configuration is:
--- 
Winnt 4.0 with sp 6a.
Apache 1.3.12 (official version downloaded from apache.net)
PHP 4.0.3pl1 (official version from php.net) – module version

Note: I checked it also using php.exe on the server, and there was no problem (using a 
batch file loop running the same “open & close” script more than 4000 times).

I'd be happy to post more information if needed.

I also had problems with odbc & paradox.
I'm not sure it's a good idea to put it under the same bug report.


php.ini

[PHP]

;;;
; About this file ;
;;;
; This file controls many aspects of PHP's behavior.  In order for PHP to
; read it, it must be named 'php.ini'.  PHP looks for it in the current
; working directory, in the path designated by the environment variable
; PHPRC, and in the path that was defined in compile time (in that order).
; Under Windows, the compile-time path is the Windows directory.  The
; path in which the php.ini file is looked for can be overriden using
; the -c argument in command line mode.
;
; The syntax of the file is extremely simple.  Whitespace and Lines
; beginning with a semicolon are silently ignored (as you probably guessed).
; Section headers (e.g. [Foo]) are also silently ignored, even though
; they might mean something in the future.
;
; Directives are specified using the following syntax:
; directive = value
; Directive names are *case sensitive* - foo=bar is different from FOO=bar.
;
; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one
; of the INI constants (On, Off, True, False, Yes, No and None) or an expression
; (e.g. E_ALL & ~E_NOTICE), or a quoted string ("foo").
;
; Expressions in the INI file are limited to bitwise operators and parentheses:
; | bitwise OR
; & bitwise AND
; ~ bitwise NOT
; ! boolean NOT
;
; Boolean flags can be turned on using the values 1, On, True or Yes.
; They can be turned off using the values 0, Off, False or No.
;
; An empty string can be denoted by simply not writing anything after the equal
; sign, or by using the None keyword:
;
;   foo =   ; sets foo to an empty string
;   foo = none  ; sets foo to an empty string
;   foo = "none"; sets foo to the string 'none'
;
; If you use constants in your value, and these constants belong to a dynamically
; loaded extension (either a PHP extension or a Zend extension), you may only
; use these constants *after* the line that loads the extension.
;
; All the values in the php.ini-dist file correspond to the builtin
; defaults (that is, if no php.ini is used, or if you delete these lines,
; the builtin defaults will be identical).



; Language Options ;
;;

[PHP-DEV] PHP 4.0 Bug #8303 Updated: ODBC open & close (3 lines script !) repeatedly cause NT crash.

2001-03-05 Thread dror

ID: 8303
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: ODBC related
Description: ODBC open & close (3 lines script !) repeatedly cause NT crash.

Sorry, 
I'm not using this configuration any more.

Dror p.

Previous Comments:
---

[2001-02-25 07:49:22] [EMAIL PROTECTED]
Does the problem persist with PHP 4.0.4pl1 or the latest snapshot from 
http://snaps.php.net/?

---

[2000-12-17 12:19:48] [EMAIL PROTECTED]
I wrote a 3 lines script that cause NT to display the following error message after 
being executed number of times. After getting this error I must close and rerun 
apache.

Title - "drwtsn32.exe - DLL initialization Failed"
Message - "Initialization of the dynamic link library C:WINNTsystem32USER32.dll 
failed. The process is terminating abnormally”

I got this error CONSISTENTLY after script was executed 828 times (see script on the 
“on the client side” section). I performed this test several times.

--
On the server side
--
Here is the script:

$MY_DB  = odbc_connect("phptest","","");
odbc_close($MY_DB);
echo "DONE!";

The DB I used is access97, the database itself (phptest) is empty. I created it but I 
didn’t create any table. 
---
On the client side:
---
I used PHP.EXE with the following script:

function my_get_url($url)
{
if (!($fp = fopen($url, "r"))) die("could not open url");

$ret="";
while (!feof ($fp)) {
$buffer = fgets($fp, 1024*10);
$ret.=$buffer;
}
fclose ($fp);
return $ret;
}


for ($i=1; $i<=2000;$i++) {
$s=my_get_url("http://www.mysite.com/mypage.php?id=$i");
$len=strlen($s);
echo "$i] len=$len $sn";
}

--- 
My server configuration is:
--- 
Winnt 4.0 with sp 6a.
Apache 1.3.12 (official version downloaded from apache.net)
PHP 4.0.3pl1 (official version from php.net) – module version

Note: I checked it also using php.exe on the server, and there was no problem (using a 
batch file loop running the same “open & close” script more than 4000 times).

I'd be happy to post more information if needed.

I also had problems with odbc & paradox.
I'm not sure it's a good idea to put it under the same bug report.


php.ini

[PHP]

;;;
; About this file ;
;;;
; This file controls many aspects of PHP's behavior.  In order for PHP to
; read it, it must be named 'php.ini'.  PHP looks for it in the current
; working directory, in the path designated by the environment variable
; PHPRC, and in the path that was defined in compile time (in that order).
; Under Windows, the compile-time path is the Windows directory.  The
; path in which the php.ini file is looked for can be overriden using
; the -c argument in command line mode.
;
; The syntax of the file is extremely simple.  Whitespace and Lines
; beginning with a semicolon are silently ignored (as you probably guessed).
; Section headers (e.g. [Foo]) are also silently ignored, even though
; they might mean something in the future.
;
; Directives are specified using the following syntax:
; directive = value
; Directive names are *case sensitive* - foo=bar is different from FOO=bar.
;
; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one
; of the INI constants (On, Off, True, False, Yes, No and None) or an expression
; (e.g. E_ALL & ~E_NOTICE), or a quoted string ("foo").
;
; Expressions in the INI file are limited to bitwise operators and parentheses:
; | bitwise OR
; & bitwise AND
; ~ bitwise NOT
; ! boolean NOT
;
; Boolean flags can be turned on using the values 1, On, True or Yes.
; They can be turned off using the values 0, Off, False or No.
;
; An empty string can be denoted by simply not writing anything after the equal
; sign, or by using the None keyword:
;
;   foo =   ; sets foo to an empty string
;   foo = none  ; sets foo to an empty string
;   foo = "none"; sets foo to the string 'none'
;
; If you use constants in your value, and these constants belong to a dynamically
; loaded extension (either a PHP extension or a Zend extension), you may only
; use these constants *after* the line that loads the extension.
;
; All the values in the php.ini-dist file correspond to the builtin
; defaults (that is, if no php.ini is used, or if you delete these lines,
; the builtin defaults will be identical).



; Language Options ;


engine  =   On  ; Enable the PHP scripting language engine 
under Apache
short_o

[PHP-DEV] PHP 4.0 Bug #8303 Updated: ODBC open & close (3 lines script !) repeatedly cause NT crash.

2001-02-25 Thread sbergmann

ID: 8303
Updated by: sbergmann
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: ODBC related
Assigned To: 
Comments:

Does the problem persist with PHP 4.0.4pl1 or the latest snapshot from 
http://snaps.php.net/?

Previous Comments:
---

[2000-12-17 12:19:48] [EMAIL PROTECTED]
I wrote a 3 lines script that cause NT to display the following error message after 
being executed number of times. After getting this error I must close and rerun 
apache.

Title - "drwtsn32.exe - DLL initialization Failed"
Message - "Initialization of the dynamic link library C:WINNTsystem32USER32.dll 
failed. The process is terminating abnormally”

I got this error CONSISTENTLY after script was executed 828 times (see script on the 
“on the client side” section). I performed this test several times.

--
On the server side
--
Here is the script:

$MY_DB  = odbc_connect("phptest","","");
odbc_close($MY_DB);
echo "DONE!";

The DB I used is access97, the database itself (phptest) is empty. I created it but I 
didn’t create any table. 
---
On the client side:
---
I used PHP.EXE with the following script:

function my_get_url($url)
{
if (!($fp = fopen($url, "r"))) die("could not open url");

$ret="";
while (!feof ($fp)) {
$buffer = fgets($fp, 1024*10);
$ret.=$buffer;
}
fclose ($fp);
return $ret;
}


for ($i=1; $i<=2000;$i++) {
$s=my_get_url("http://www.mysite.com/mypage.php?id=$i");
$len=strlen($s);
echo "$i] len=$len $sn";
}

--- 
My server configuration is:
--- 
Winnt 4.0 with sp 6a.
Apache 1.3.12 (official version downloaded from apache.net)
PHP 4.0.3pl1 (official version from php.net) – module version

Note: I checked it also using php.exe on the server, and there was no problem (using a 
batch file loop running the same “open & close” script more than 4000 times).

I'd be happy to post more information if needed.

I also had problems with odbc & paradox.
I'm not sure it's a good idea to put it under the same bug report.


php.ini

[PHP]

;;;
; About this file ;
;;;
; This file controls many aspects of PHP's behavior.  In order for PHP to
; read it, it must be named 'php.ini'.  PHP looks for it in the current
; working directory, in the path designated by the environment variable
; PHPRC, and in the path that was defined in compile time (in that order).
; Under Windows, the compile-time path is the Windows directory.  The
; path in which the php.ini file is looked for can be overriden using
; the -c argument in command line mode.
;
; The syntax of the file is extremely simple.  Whitespace and Lines
; beginning with a semicolon are silently ignored (as you probably guessed).
; Section headers (e.g. [Foo]) are also silently ignored, even though
; they might mean something in the future.
;
; Directives are specified using the following syntax:
; directive = value
; Directive names are *case sensitive* - foo=bar is different from FOO=bar.
;
; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one
; of the INI constants (On, Off, True, False, Yes, No and None) or an expression
; (e.g. E_ALL & ~E_NOTICE), or a quoted string ("foo").
;
; Expressions in the INI file are limited to bitwise operators and parentheses:
; | bitwise OR
; & bitwise AND
; ~ bitwise NOT
; ! boolean NOT
;
; Boolean flags can be turned on using the values 1, On, True or Yes.
; They can be turned off using the values 0, Off, False or No.
;
; An empty string can be denoted by simply not writing anything after the equal
; sign, or by using the None keyword:
;
;   foo =   ; sets foo to an empty string
;   foo = none  ; sets foo to an empty string
;   foo = "none"; sets foo to the string 'none'
;
; If you use constants in your value, and these constants belong to a dynamically
; loaded extension (either a PHP extension or a Zend extension), you may only
; use these constants *after* the line that loads the extension.
;
; All the values in the php.ini-dist file correspond to the builtin
; defaults (that is, if no php.ini is used, or if you delete these lines,
; the builtin defaults will be identical).



; Language Options ;


engine  =   On  ; Enable the PHP scripting language engine 
under Apache
short_open_tag  =   On  ; allow the  tags are recognized.
asp_tags=   Off ; allow ASP-style <% %> tags
precision   =   14  ; number of significant digits displayed in 
floa