Path: csiph.com!news.mixmin.net!aioe.org!u6u0oSjYSR071M7Ny+EWeQ.user.46.165.242.91.POSTED!not-for-mail From: Meredith Montgomery Newsgroups: comp.lang.php Subject: Re: php 7.4: null["key"] Date: Fri, 03 Jun 2022 17:09:41 -0300 Organization: Aioe.org NNTP Server Message-ID: <86bkv9cxve.fsf@levado.to> References: <86mtfcq6yj.fsf@levado.to> <86ilpnepih.fsf@levado.to> <86r1498hit.fsf@levado.to> <86y1yedd70.fsf@levado.to> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: gioia.aioe.org; logging-data="58624"; posting-host="u6u0oSjYSR071M7Ny+EWeQ.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org"; Cancel-Lock: sha1:Fvhlc6yCNfXrZmzBGlhvhdVKnxc= X-Notice: Filtered by postfilter v. 0.9.2 Xref: csiph.com comp.lang.php:18974 Meredith Montgomery writes: > De ongekruisigde writes: > >> On 2022-05-31, Meredith Montgomery wrote: >>> "J.O. Aho" writes: >>> >>>> On 30/05/2022 04.13, Meredith Montgomery wrote: >>>>> Meredith Montgomery writes: >>>>> >>>>>> I'm upgrading code to PHP 7.4, which will now blow a notice for things >>>>>> such as >>>>>> >>>>>> null["key"] >>>>>> (1.2)["key"] >>>>>> (123)["key"] [...] >> Have you looked at PHPCompatibility? >> >> > > That looks very good. I had not looked into it, but I will. I'll > report back with what I find. Thank you so much. Thank you for the suggestion. My sane tests all worked, but now I'm processing an entire directory structure and the program seems to be quitting at 15%, returning exit code 255. $ phpcs -p . --standard=PHPCompatibility ............................................................ 60 / 12472 (0%) ............WWWWWW.....W.................................... 120 / 12472 (1%) ............................................................ 180 / 12472 (1%) .........................................................W.. 240 / 12472 (2%) ............................................................ 300 / 12472 (2%) ...................W........................................ 360 / 12472 (3%) ...............W....................W....................... 420 / 12472 (3%) W........................................................... 480 / 12472 (4%) W..........W.W..........W...........W....................... 540 / 12472 (4%) ......................W.........W...WW.W...W....W.......W... 600 / 12472 (5%) ......W.WW...W..WWWW....W.........W.W.W.W..WW.W.WWWWW.WWEWWW 660 / 12472 (5%) WWWWWWWWWWWWW.WW...W.WWWWWW.WW.WWWW...WW.WWE...........W.... 720 / 12472 (6%) EEWW..E..................................................... 780 / 12472 (6%) ...................W........................................ 840 / 12472 (7%) ............................................................ 900 / 12472 (7%) ...................W........................................ 960 / 12472 (8%) .........................................W.................. 1020 / 12472 (8%) ....................................W....................... 1080 / 12472 (9%) .......................W........................W........W.. 1140 / 12472 (9%) WW............W..........W.W...W...............W....W....... 1200 / 12472 (10%) ......W..................................................... 1260 / 12472 (10%) ............................................................ 1320 / 12472 (11%) ............................................................ 1380 / 12472 (11%) ...................W......WWWW....W.W........W....W......... 1440 / 12472 (12%) .........................................................W.. 1500 / 12472 (12%) WWWWW..W...W..............WW.WWW......W........W............ 1560 / 12472 (13%) .......W...................................SS..S..S......... 1620 / 12472 (13%) .........SS...............................................SS 1680 / 12472 (13%) S...S.S......S.............................................. 1740 / 12472 (14%) ..S...........S...............................S............. 1800 / 12472 (14%) ............................................................ 1860 / 12472 (15%) ..................SS............S.S...SSSS............S..S.S 1920 / 12472 (15%) ..$ echo $? 255 $ (*) A new attempt If I use the --report-file flag, I get to see the partial report produced, so I have 15% of the full report, but the program seems to quit (or crash) like before. $ phpcs -p . --standard=PHPCompatibility --report-file=/usr/local/tmp/report.txt [...] ..................SS............S.S...SSSS............S..S.S 1920 / 12472 (15%) ..$ echo $? 255 I have not yet found any debugging flags or anything like that.