[PHP-DEV] PHP 4.0 Bug #8846 Updated: gmdate() causes crash. Using Apache + Win2K

2001-03-13 Thread dbeu

ID: 8846
Updated by: dbeu
Reported By: [EMAIL PROTECTED]
Old-Status: Analyzed
Status: Closed
Bug Type: Reproduceable crash
Assigned To: 
Comments:

fixed in cvs

Previous Comments:
---

[2001-02-17 17:55:23] [EMAIL PROTECTED]
This snippet

  ?php
echo gmdate ("M d Y H:i:s", -1);
  ?

still crashes on Win32. Could some kind soul please look into this issue?

---

[2001-01-25 17:45:33] [EMAIL PROTECTED]
gmdate() crashes if -1 is given as timestamp (gmmktime() is returning -1 if an error 
occured)



---

[2001-01-22 19:25:01] [EMAIL PROTECTED]
hi,
This bug is reproduceable after the releases of 4.0.2 and above. It works fine with 
4.0.1pl1

Following are the functions that causes crash (I get access violation).
$lday = gmdate('l', gmmktime(0,0,0,$month,$day,$year));
$lmonth = gmdate('F', gmmktime(0,0,0,$month,$day,$year));

Where $day, $month  $year are e.g. 10, 2, 2000

As i am running Win2K, and i have Dr.Watson installed. It actually logs the errors in 
a file. Below is the complete error log that Win2K made.

Application exception occurred:
App:  (pid=1592)
When: 1/23/2001 @ 00:03:06.221
Exception number: c005 (access violation)

* System Information *
Computer Name: DAARIUS
User Name: SYSTEM
Number of Processors: 1
Processor Type: x86 Family 6 Model 8 Stepping 6
Windows 2000 Version: 5.0
Current Build: 2195
Service Pack: 1
Current Type: Uniprocessor Free
Registered Organization: 
Registered Owner: Daarius

* Task List *
   0 Idle.exe
   8 System.exe
 176 SMSS.exe
 200 csrss.exe
 220 WINLOGON.exe
 248 services.exe
 260 LSASS.exe
 428 svchost.exe
 456 SPOOLSV.exe
 508 msdtc.exe
 608 Apache.exe
 624 Ati2evxx.exe
 640 svchost.exe
 672 Apache.exe
 884 mysqld-sharewar.exe
 936 regsvc.exe
 952 mstask.exe
 976 tcpsvcs.exe
1012 snmp.exe
1052 stisvc.exe
1088 WinMgmt.exe
1104 mqsvc.exe
1324 explorer.exe
1432 atiptaxx.exe
1456 SynTPLpr.exe
1412 SynTPEnh.exe
1472 prpcui.exe
1476 DIRECTCD.exe
1492 internat.exe
1504 OSA.exe
1664 IEXPLORE.exe
1716 mdm.exe
1640 EditPad.exe
1592 php.exe
1668 DRWTSN32.exe
   0 _Total.exe

(0040 - 00405000) 
(77F8 - 77FFA000) 
(1000 - 100F9000) 
(77E8 - 77F35000) 
(77E1 - 77E74000) 
(77F4 - 77F7C000) 
(7505 - 75058000) 
(7503 - 75044000) 
(7800 - 78046000) 
(77DB - 77E0A000) 
(77D4 - 77DB) 
(7502 - 75028000) 
(77A5 - 77B45000) 
(779B - 77A45000) 
(1F7D - 1F804000) 
(76B3 - 76B6E000) 
(70BD - 70C1C000) 
(7170 - 7178A000) 
(6980 - 69A42000) 
(780A - 780B2000) 
(1F8C - 1F8D6000) 
(7828 - 7828C000) 
(7798 - 779A4000) 
(777E - 777E8000) 
(7795 - 77979000) 
(777F - 777F5000) 
(7783 - 7783E000) 
(74FD - 74FED000) 
(7734 - 77353000) 
(7752 - 77525000) 
(7732 - 77337000) 
(7515 - 7515F000) 
(7517 - 751BF000) 
(77BE - 77BEF000) 
(751C - 751C6000) 
(773B - 773DE000) 
(7738 - 773A2000) 
(7788 - 7790D000) 
(77C1 - 77C6D000) 
(774E - 77512000) 
(774C - 774D1000) 
(7753 - 77552000) 
(7736 - 77379000) 
(691D - 69255000) 
(7501 - 75017000) 

State Dump for Thread Id 0x258

eax= ebx=0012f54c ecx=0009 edx=005138f0 esi= edi=0012f54c
eip=10005ca6 esp=0012f504 ebp=00ad8b38 iopl=0 nv up ei pl zr na po nc
cs=001b  ss=0023  ds=0023  es=0023  fs=0038  gs= efl=0246


function: php_gmtime_r
10005c87 57   pushedi
10005c88 50   pusheax
10005c89 e8223f0800   calltsrm_mutex_lock (10089bb0)
10005c8e 8b4c2414 mov ecx,[esp+0x14] ss:00bacadb=
10005c92 51   pushecx
10005c93 ff1514c20b10ds:100bc214=7802a3b5
 call dword ptr [zend_ptr_stack_clean+0x10914 (100bc214)]
10005c99 8b5c241c mov ebx,[esp+0x1c] ss:00bacadb=
10005c9d b90900   mov ecx,0x9
10005ca2 8bf0 mov esi,eax
10005ca4 8bfb mov edi,ebx
FAULT -10005ca6 f3a5rep  movsd ds:= es:0012f54c=0004
10005ca8 8b1518c30e10ds:100ec318=005138f0
  mov edx,[php_ini_path+0x48 (100ec318)]
10005cae 52   pushedx
10005caf e81c3f0800   calltsrm_mutex_unlock (10089bd0)
10005cb4 83c40c   add esp,0xc
10005cb7 8bc3   

[PHP-DEV] PHP 4.0 Bug #8846 Updated: gmdate() causes crash. Using Apache + Win2K

2001-02-17 Thread sbergmann

ID: 8846
Updated by: sbergmann
Reported By: [EMAIL PROTECTED]
Status: Analyzed
Bug Type: Reproduceable crash
Assigned To: 
Comments:

This snippet

  ?php
echo gmdate ("M d Y H:i:s", -1);
  ?

still crashes on Win32. Could some kind soul please look into this issue?

Previous Comments:
---

[2001-01-25 17:45:33] [EMAIL PROTECTED]
gmdate() crashes if -1 is given as timestamp (gmmktime() is returning -1 if an error 
occured)



---

[2001-01-22 19:25:01] [EMAIL PROTECTED]
hi,
This bug is reproduceable after the releases of 4.0.2 and above. It works fine with 
4.0.1pl1

Following are the functions that causes crash (I get access violation).
$lday = gmdate('l', gmmktime(0,0,0,$month,$day,$year));
$lmonth = gmdate('F', gmmktime(0,0,0,$month,$day,$year));

Where $day, $month  $year are e.g. 10, 2, 2000

As i am running Win2K, and i have Dr.Watson installed. It actually logs the errors in 
a file. Below is the complete error log that Win2K made.

Application exception occurred:
App:  (pid=1592)
When: 1/23/2001 @ 00:03:06.221
Exception number: c005 (access violation)

* System Information *
Computer Name: DAARIUS
User Name: SYSTEM
Number of Processors: 1
Processor Type: x86 Family 6 Model 8 Stepping 6
Windows 2000 Version: 5.0
Current Build: 2195
Service Pack: 1
Current Type: Uniprocessor Free
Registered Organization: 
Registered Owner: Daarius

* Task List *
   0 Idle.exe
   8 System.exe
 176 SMSS.exe
 200 csrss.exe
 220 WINLOGON.exe
 248 services.exe
 260 LSASS.exe
 428 svchost.exe
 456 SPOOLSV.exe
 508 msdtc.exe
 608 Apache.exe
 624 Ati2evxx.exe
 640 svchost.exe
 672 Apache.exe
 884 mysqld-sharewar.exe
 936 regsvc.exe
 952 mstask.exe
 976 tcpsvcs.exe
1012 snmp.exe
1052 stisvc.exe
1088 WinMgmt.exe
1104 mqsvc.exe
1324 explorer.exe
1432 atiptaxx.exe
1456 SynTPLpr.exe
1412 SynTPEnh.exe
1472 prpcui.exe
1476 DIRECTCD.exe
1492 internat.exe
1504 OSA.exe
1664 IEXPLORE.exe
1716 mdm.exe
1640 EditPad.exe
1592 php.exe
1668 DRWTSN32.exe
   0 _Total.exe

(0040 - 00405000) 
(77F8 - 77FFA000) 
(1000 - 100F9000) 
(77E8 - 77F35000) 
(77E1 - 77E74000) 
(77F4 - 77F7C000) 
(7505 - 75058000) 
(7503 - 75044000) 
(7800 - 78046000) 
(77DB - 77E0A000) 
(77D4 - 77DB) 
(7502 - 75028000) 
(77A5 - 77B45000) 
(779B - 77A45000) 
(1F7D - 1F804000) 
(76B3 - 76B6E000) 
(70BD - 70C1C000) 
(7170 - 7178A000) 
(6980 - 69A42000) 
(780A - 780B2000) 
(1F8C - 1F8D6000) 
(7828 - 7828C000) 
(7798 - 779A4000) 
(777E - 777E8000) 
(7795 - 77979000) 
(777F - 777F5000) 
(7783 - 7783E000) 
(74FD - 74FED000) 
(7734 - 77353000) 
(7752 - 77525000) 
(7732 - 77337000) 
(7515 - 7515F000) 
(7517 - 751BF000) 
(77BE - 77BEF000) 
(751C - 751C6000) 
(773B - 773DE000) 
(7738 - 773A2000) 
(7788 - 7790D000) 
(77C1 - 77C6D000) 
(774E - 77512000) 
(774C - 774D1000) 
(7753 - 77552000) 
(7736 - 77379000) 
(691D - 69255000) 
(7501 - 75017000) 

State Dump for Thread Id 0x258

eax= ebx=0012f54c ecx=0009 edx=005138f0 esi= edi=0012f54c
eip=10005ca6 esp=0012f504 ebp=00ad8b38 iopl=0 nv up ei pl zr na po nc
cs=001b  ss=0023  ds=0023  es=0023  fs=0038  gs= efl=0246


function: php_gmtime_r
10005c87 57   pushedi
10005c88 50   pusheax
10005c89 e8223f0800   calltsrm_mutex_lock (10089bb0)
10005c8e 8b4c2414 mov ecx,[esp+0x14] ss:00bacadb=
10005c92 51   pushecx
10005c93 ff1514c20b10ds:100bc214=7802a3b5
 call dword ptr [zend_ptr_stack_clean+0x10914 (100bc214)]
10005c99 8b5c241c mov ebx,[esp+0x1c] ss:00bacadb=
10005c9d b90900   mov ecx,0x9
10005ca2 8bf0 mov esi,eax
10005ca4 8bfb mov edi,ebx
FAULT -10005ca6 f3a5rep  movsd ds:= es:0012f54c=0004
10005ca8 8b1518c30e10ds:100ec318=005138f0
  mov edx,[php_ini_path+0x48 (100ec318)]
10005cae 52   pushedx
10005caf e81c3f0800   calltsrm_mutex_unlock (10089bd0)
10005cb4 83c40c   add esp,0xc
10005cb7 8bc3 mov eax,ebx
10005cb9 5f   pop edi
10005cba 5e   pop esi
10005cbb 5b 

[PHP-DEV] PHP 4.0 Bug #8846 Updated: gmdate() causes crash. Using Apache + Win2K

2001-01-25 Thread dbeu

ID: 8846
Updated by: dbeu
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Analyzed
Bug Type: Reproduceable crash
Assigned To: 
Comments:

gmdate() crashes if -1 is given as timestamp (gmmktime() is returning -1 if an error 
occured)



Previous Comments:
---

[2001-01-22 19:25:01] [EMAIL PROTECTED]
hi,
This bug is reproduceable after the releases of 4.0.2 and above. It works fine with 
4.0.1pl1

Following are the functions that causes crash (I get access violation).
$lday = gmdate('l', gmmktime(0,0,0,$month,$day,$year));
$lmonth = gmdate('F', gmmktime(0,0,0,$month,$day,$year));

Where $day, $month  $year are e.g. 10, 2, 2000

As i am running Win2K, and i have Dr.Watson installed. It actually logs the errors in 
a file. Below is the complete error log that Win2K made.

Application exception occurred:
App:  (pid=1592)
When: 1/23/2001 @ 00:03:06.221
Exception number: c005 (access violation)

* System Information *
Computer Name: DAARIUS
User Name: SYSTEM
Number of Processors: 1
Processor Type: x86 Family 6 Model 8 Stepping 6
Windows 2000 Version: 5.0
Current Build: 2195
Service Pack: 1
Current Type: Uniprocessor Free
Registered Organization: 
Registered Owner: Daarius

* Task List *
   0 Idle.exe
   8 System.exe
 176 SMSS.exe
 200 csrss.exe
 220 WINLOGON.exe
 248 services.exe
 260 LSASS.exe
 428 svchost.exe
 456 SPOOLSV.exe
 508 msdtc.exe
 608 Apache.exe
 624 Ati2evxx.exe
 640 svchost.exe
 672 Apache.exe
 884 mysqld-sharewar.exe
 936 regsvc.exe
 952 mstask.exe
 976 tcpsvcs.exe
1012 snmp.exe
1052 stisvc.exe
1088 WinMgmt.exe
1104 mqsvc.exe
1324 explorer.exe
1432 atiptaxx.exe
1456 SynTPLpr.exe
1412 SynTPEnh.exe
1472 prpcui.exe
1476 DIRECTCD.exe
1492 internat.exe
1504 OSA.exe
1664 IEXPLORE.exe
1716 mdm.exe
1640 EditPad.exe
1592 php.exe
1668 DRWTSN32.exe
   0 _Total.exe

(0040 - 00405000) 
(77F8 - 77FFA000) 
(1000 - 100F9000) 
(77E8 - 77F35000) 
(77E1 - 77E74000) 
(77F4 - 77F7C000) 
(7505 - 75058000) 
(7503 - 75044000) 
(7800 - 78046000) 
(77DB - 77E0A000) 
(77D4 - 77DB) 
(7502 - 75028000) 
(77A5 - 77B45000) 
(779B - 77A45000) 
(1F7D - 1F804000) 
(76B3 - 76B6E000) 
(70BD - 70C1C000) 
(7170 - 7178A000) 
(6980 - 69A42000) 
(780A - 780B2000) 
(1F8C - 1F8D6000) 
(7828 - 7828C000) 
(7798 - 779A4000) 
(777E - 777E8000) 
(7795 - 77979000) 
(777F - 777F5000) 
(7783 - 7783E000) 
(74FD - 74FED000) 
(7734 - 77353000) 
(7752 - 77525000) 
(7732 - 77337000) 
(7515 - 7515F000) 
(7517 - 751BF000) 
(77BE - 77BEF000) 
(751C - 751C6000) 
(773B - 773DE000) 
(7738 - 773A2000) 
(7788 - 7790D000) 
(77C1 - 77C6D000) 
(774E - 77512000) 
(774C - 774D1000) 
(7753 - 77552000) 
(7736 - 77379000) 
(691D - 69255000) 
(7501 - 75017000) 

State Dump for Thread Id 0x258

eax= ebx=0012f54c ecx=0009 edx=005138f0 esi= edi=0012f54c
eip=10005ca6 esp=0012f504 ebp=00ad8b38 iopl=0 nv up ei pl zr na po nc
cs=001b  ss=0023  ds=0023  es=0023  fs=0038  gs= efl=0246


function: php_gmtime_r
10005c87 57   pushedi
10005c88 50   pusheax
10005c89 e8223f0800   calltsrm_mutex_lock (10089bb0)
10005c8e 8b4c2414 mov ecx,[esp+0x14] ss:00bacadb=
10005c92 51   pushecx
10005c93 ff1514c20b10ds:100bc214=7802a3b5
 call dword ptr [zend_ptr_stack_clean+0x10914 (100bc214)]
10005c99 8b5c241c mov ebx,[esp+0x1c] ss:00bacadb=
10005c9d b90900   mov ecx,0x9
10005ca2 8bf0 mov esi,eax
10005ca4 8bfb mov edi,ebx
FAULT -10005ca6 f3a5rep  movsd ds:= es:0012f54c=0004
10005ca8 8b1518c30e10ds:100ec318=005138f0
  mov edx,[php_ini_path+0x48 (100ec318)]
10005cae 52   pushedx
10005caf e81c3f0800   calltsrm_mutex_unlock (10089bd0)
10005cb4 83c40c   add esp,0xc
10005cb7 8bc3 mov eax,ebx
10005cb9 5f   pop edi
10005cba 5e   pop esi
10005cbb 5b   pop ebx
10005cbc c3   ret
10005cbd 90   nop
10005cbe 90   nop


(Please could you fix this as soon as possible, as it is holding my whole development. 
I am using