php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6902 "Notice" Errors not working and crashing
Submitted: 2000-09-27 09:34 UTC Modified: 2000-10-12 07:14 UTC
From: danielc at analysisandsolutions dot com Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0.2 OS: NT 4.0 (SP 6a)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: danielc at analysisandsolutions dot com
New email:
PHP Version: OS:

 

 [2000-09-27 09:34 UTC] danielc at analysisandsolutions dot com
The "Notice" level error reporting mechanisim has two bugs.  These problems arise when error_reporting() is set to 8 or 15.

1) Not all programming errors are reported.  For example:

<?php
   error_reporting(15);

   # In PHP 3.0.11, that's reported as "Bad escape sequence." 
   # In PHP 4.0.2, no error is reported.
   $X = "c:\dirname";

   # This causes a parse error in both versions.
   $Y = "sala"mala";

?>



2) System crashes when a "Notice" level error is encountered.  Below are some code samples.  The first two samples run fine, as they should.  The third sample crashes, which it should not.

<?php
   # Okee dokee.
   error_reporting(15);
   $Blah = "whoopee";
   echo "<br />Blah: $Blah";
?>

<?php
   # No sweat.
   error_reporting(0);
   echo "<br />Rah: $Rah";
?>

<?php
   # Crashes on PHP 4.0.2, Windows NT 4.0, Apache 1.3.6.
   error_reporting(15);
   echo "<br />Rah: $Rah";

/*
NOTE:
No problems when:
   error_reporting(1);
   error_reporting(2);
   error_reporting(4);
*/

?>



Here's Dr. Watson Report.......

Microsoft (R) Windows NT (TM) Version 4.00 DrWtsn32
Copyright (C) 1985-1996 Microsoft Corp. All rights reserved.



Application exception occurred:
        App:  (pid=213)
        When: 9/26/2000 @ 19:54:19.559
        Exception number: c0000005 (access violation)

*----> System Information <----*
        Computer Name: BASE
        User Name: SYSTEM
        Number of Processors: 1
        Processor Type: x86 Family 6 Model 3 Stepping 4
        Windows Version: 4.0
        Current Build: 1381
        Service Pack: 6
        Current Type: Uniprocessor Free
        Registered Organization: Analysis and Solutions Company
        Registered Owner: Daniel Convissor

*----> Task List <----*
   0 Idle.exe
   2 System.exe
  24 SMSS.exe
  32 CSRSS.exe
  38 WINLOGON.exe
  46 SERVICES.exe
  49 LSASS.exe
  75 SPOOLSS.exe
  81 Apache.exe
  87 Apache.exe
  93 mysqld.exe
 146 NPSSVC.exe
 151 RPCSS.exe
  88 TAPISRV.exe
 169 PSTORES.exe
 172 RASMAN.exe
 187 NDDEAGNT.exe
 194 EXPLORER.exe
 203 directcd.exe
 205 hpcron.exe
 195 LOADWC.exe
 209 NTVDM.exe
 222 netscape.exe
 189 NOTEPAD.exe
 213 php.exe
  79 DRWTSN32.exe
   0 _Total.exe

(00400000 - 00400000) 
(77f60000 - 77fbe000) dll\ntdll.dbg
(10000000 - 10000000) 
(77f00000 - 77f5e000) dll\kernel32.dbg
(77e70000 - 77ec5000) dll\user32.dbg
(77ed0000 - 77efc000) dll\gdi32.dbg
(77dc0000 - 77dff000) dll\advapi32.dbg
(77e10000 - 77e67000) dll\rpcrt4.dbg
(776d0000 - 776d8000) dll\wsock32.dbg
(776b0000 - 776c4000) dll\ws2_32.dbg
(78000000 - 7803d000) 
(776a0000 - 776a7000) dll\ws2help.dbg
(77b20000 - 77bd7000) dll\ole32.dbg
(65340000 - 653d2000) oleaut32.dbg
(6a980000 - 6a9b4000) odbc32.dbg
(77aa0000 - 77b15000) COMCTL32.dbg
(77c40000 - 77d7c000) dll\shell32.dbg
(77d80000 - 77db2000) dll\comdlg32.dbg
(77a90000 - 77a9b000) dll\version.dbg
(779c0000 - 779c8000) dll\lz32.dbg
(780a0000 - 780a0000) 
(04a00000 - 04a13000) ..\RES\US\ODBCLAN\\ndebug32\ODBCINT.dll

State Dump for Thread Id 0xbe

eax=00000004 ebx=ffffff73 ecx=ffffffff edx=00000000 esi=7fffffff edi=100c743b
eip=7800f733 esp=0012f1c0 ebp=0012f41c iopl=0         nv up ei pl nz na pe nc
cs=001b  ss=0023  ds=0023  es=0023  fs=0038  gs=0000             efl=00000202


function: fcloseall
        7800f721 4b               dec     ebx
        7800f722 85c0             test    eax,eax
        7800f724 7fe2             jg      fcloseall+0x92d (7800f708)
        7800f726 5f               pop     edi
        7800f727 5e               pop     esi
        7800f728 5b               pop     ebx
        7800f729 c3               ret
        7800f72a 8b442404         mov     eax,[esp+0x4]          ss:00e5dbc7=????????
        7800f72e 830004           add     dword ptr [eax],0x4    ds:00000004=????????
        7800f731 8b00             mov     eax,[eax]              ds:00000004=????????
FAULT ->7800f733 8b40fc           mov     eax,[eax-0x4]          ds:00d2ea0a=????????
        7800f736 c3               ret
        7800f737 8b442404         mov     eax,[esp+0x4]          ss:00e5dbc7=????????
        7800f73b 830008           add     dword ptr [eax],0x8    ds:00000004=????????
        7800f73e 8b08             mov     ecx,[eax]              ds:00000004=????????
        7800f740 8b41f8           mov     eax,[ecx-0x8]          ds:00d2ea05=????????
        7800f743 8b51fc           mov     edx,[ecx-0x4]          ds:00d2ea05=????????
        7800f746 c3               ret
        7800f747 8b442404         mov     eax,[esp+0x4]          ss:00e5dbc7=????????
        7800f74b 830004           add     dword ptr [eax],0x4    ds:00000004=????????
        7800f74e 8b00             mov     eax,[eax]              ds:00000004=????????
        7800f750 668b40fc         mov     ax,[eax-0x4]               ds:00d2ea0b=????

*----> Stack Back Trace <----*

FramePtr ReturnAd Param#1  Param#2  Param#3  Param#4  Function Name
0012f41c 7802049e 0012f434 100c743b 00000004 00000000 !fcloseall 
0012f454 100054d6 0012f48c 000003ff 100c7424 00000000 !vsnprintf 

*----> Raw Stack Dump <----*
0012f1c0  3b f1 00 78 2c f4 12 00 - 00 3b 7c 00 00 00 00 00  ;..x,....;|.....
0012f1d0  f8 ff ff ff 54 47 f6 77 - 80 06 13 00 e0 f4 12 00  ....TG.w........
0012f1e0  e4 f3 12 00 01 f5 12 00 - 54 00 55 00 56 00 57 00  ........T.U.V.W.
0012f1f0  58 00 59 00 5a 00 7b 00 - 7c 00 7d 00 7e 00 7f 00  X.Y.Z.{.|.}.~...
0012f200  ac 20 81 00 1a 20 91 01 - 1e 20 26 20 20 20 21 20  . ... ... &   ! 
0012f210  c6 02 30 20 60 01 39 20 - 52 01 8d 00 7d 01 8f 00  ..0 `.9 R...}...
0012f220  90 00 18 20 19 20 1c 20 - 1d 20 22 20 13 20 31 38  ... . . . " . 18
0012f230  dc 02 22 21 60 01 3a 20 - 00 00 00 00 0a 00 00 00  .."!`.: ........
0012f240  00 00 00 00 a2 00 a3 00 - 00 00 00 00 07 00 00 00  ................
0012f250  00 00 00 00 00 00 00 00 - 00 00 00 00 36 65 f6 77  ............6e.w
0012f260  00 ec fd 7f 08 02 00 00 - 26 00 00 00 e3 f5 12 00  ........&.......
0012f270  26 00 28 00 00 ec fd 7f - 75 5b f6 77 70 7f fa 77  &.(.....u[.wp..w
0012f280  b6 64 f6 77 08 02 00 00 - d0 f8 12 00 80 f3 12 00  .d.w............
0012f290  d4 2c f9 77 60 d8 f9 77 - ff ff ff ff 60 f3 12 00  .,.w`..w....`...
0012f2a0  26 00 28 00 00 ec fd 7f - 00 00 00 00 80 f3 12 00  &.(.............
0012f2b0  00 00 00 00 00 00 13 00 - 68 7c 13 00 28 00 13 00  ........h|..(...
0012f2c0  70 7c 13 00 24 eb f8 77 - 40 00 00 00 00 00 00 00  p|..$..w@.......
0012f2d0  50 04 13 00 2c 00 00 00 - 6b 00 00 00 00 03 00 00  P...,...k.......
0012f2e0  54 f1 12 00 35 2d 31 38 - 60 f3 12 00 00 00 00 00  T...5-18`.......
0012f2f0  2c 00 00 00 00 00 13 00 - 70 f3 12 00 70 f3 12 00  ,.......p...p...

State Dump for Thread Id 0xc9

eax=00007530 ebx=00000000 ecx=000000be edx=00000000 esi=77e726e5 edi=00edff6c
eip=77e72397 esp=00edff24 ebp=00edff48 iopl=0         nv up ei pl zr na po nc
cs=001b  ss=0023  ds=0023  es=0023  fs=0038  gs=0000             efl=00000246


function: InvalidateRect
        77e7237e b89e110000       mov     eax,0x119e
        77e72383 8d542404         lea     edx,[esp+0x4]          ss:01c0e92b=????????
        77e72387 cd2e             int     2e
        77e72389 c20c00           ret     0xc
        77e7238c b885110000       mov     eax,0x1185
        77e72391 8d542404         lea     edx,[esp+0x4]          ss:01c0e92b=????????
        77e72395 cd2e             int     2e
        77e72397 c21400           ret     0x14

*----> Stack Back Trace <----*

FramePtr ReturnAd Param#1  Param#2  Param#3  Param#4  Function Name
00edff48 10082635 00edff6c 00000000 00000000 00000000 user32!InvalidateRect 

*----> Raw Stack Dump <----*
00edff24  15 27 e7 77 6c ff ed 00 - 00 00 00 00 00 00 00 00  .'.wl...........
00edff34  00 00 00 00 44 ff ed 00 - 66 25 e7 77 e5 26 e7 77  ....D...f%.w.&.w
00edff44  e5 26 e7 77 b8 ff ed 00 - 35 26 08 10 6c ff ed 00  .&.w....5&..l...
00edff54  00 00 00 00 00 00 00 00 - 00 00 00 00 b0 fd 12 00  ................
00edff64  50 4c 7e 00 50 4c 7e 00 - 00 00 00 00 01 04 00 00  PL~.PL~.........
00edff74  be 00 00 00 1e 00 00 00 - 84 6c 42 02 91 01 00 00  .........lB.....
00edff84  2f 01 00 00 76 36 00 78 - 00 00 00 00 b0 fd 12 00  /...v6.x........
00edff94  0b 00 00 00 50 4c 7e 00 - a5 dd 11 80 90 ff ed 00  ....PL~.........
00edffa4  8b 74 11 80 dc ff ed 00 - 75 e1 00 78 08 d3 02 78  .t......u..x...x
00edffb4  00 00 00 00 ec ff ed 00 - de 4e f0 77 50 4c 7e 00  .........N.wPL~.
00edffc4  b0 fd 12 00 0b 00 00 00 - 50 4c 7e 00 0b 00 00 00  ........PL~.....
00edffd4  c4 ff ed 00 c4 fd 12 00 - ff ff ff ff 44 b9 f3 77  ............D..w
00edffe4  38 d2 f3 77 00 00 00 00 - 00 00 00 00 00 00 00 00  8..w............
00edfff4  1b 36 00 78 50 4c 7e 00 - 00 00 00 00 07 00 00 00  .6.xPL~.........
00ee0004  01 01 00 00 ee ff ee ff - 00 00 00 00 00 00 7b 00  ..............{.
00ee0014  00 80 0f 00 00 00 ee 00 - 00 01 00 00 38 00 ee 00  ............8...
00ee0024  00 00 fe 00 f8 00 00 00 - 01 00 00 00 c8 04 7b 00  ..............{.
00ee0034  00 00 00 00 01 02 07 00 - 01 01 08 00 58 2d 50 6f  ............X-Po
00ee0044  77 65 72 65 64 2d 42 79 - 3a 20 50 48 50 2f 34 2e  wered-By: PHP/4.
00ee0054  30 2e 32 0d 0a 43 6f 6e - 74 65 6e 74 2d 74 79 70  0.2..Content-typ



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-11 21:00 UTC] danielc at analysisandsolutions dot com
Crash problems solved in 4.0.3.  Thanks!

BUT, the following is still not repored as a notice error:
   $X = "c:\dirname";

 [2000-10-12 07:14 UTC] sniper@php.net
Only on bug per report, please.

--Jani
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 04:01:29 2024 UTC