Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #18974
| From | Meredith Montgomery <mmontgomery@levado.to> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: php 7.4: null["key"] |
| Date | 2022-06-03 17:09 -0300 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <86bkv9cxve.fsf@levado.to> (permalink) |
| References | (1 earlier) <86ilpnepih.fsf@levado.to> <jfj569Foau1U1@mid.individual.net> <86r1498hit.fsf@levado.to> <t765ep$77k$1@dont-email.me> <86y1yedd70.fsf@levado.to> |
Meredith Montgomery <mmontgomery@levado.to> writes: > De ongekruisigde <ongekruisigde@news.eternal-september.org> writes: > >> On 2022-05-31, Meredith Montgomery <mmontgomery@levado.to> wrote: >>> "J.O. Aho" <user@example.net> writes: >>> >>>> On 30/05/2022 04.13, Meredith Montgomery wrote: >>>>> Meredith Montgomery <mmontgomery@levado.to> 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? >> >> <https://github.com/PHPCompatibility/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.
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
php 7.4: null["key"] Meredith Montgomery <mmontgomery@levado.to> - 2022-05-20 17:34 -0300
Re: php 7.4: null["key"] Meredith Montgomery <mmontgomery@levado.to> - 2022-05-29 23:13 -0300
Re: php 7.4: null["key"] "J.O. Aho" <user@example.net> - 2022-05-30 08:06 +0200
Re: php 7.4: null["key"] Meredith Montgomery <mmontgomery@levado.to> - 2022-05-31 19:27 -0300
Re: php 7.4: null["key"] De ongekruisigde <ongekruisigde@news.eternal-september.org> - 2022-05-31 22:39 +0000
Re: php 7.4: null["key"] Meredith Montgomery <mmontgomery@levado.to> - 2022-06-02 17:26 -0300
Re: php 7.4: null["key"] Meredith Montgomery <mmontgomery@levado.to> - 2022-06-03 17:09 -0300
Re: php 7.4: null["key"] De ongekruisigde <ongekruisigde@news.eternal-september.org> - 2022-06-04 14:35 +0000
csiph-web