Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
base system
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
30 Mar 2012 at 19:17 UTC
Updated:
29 Jul 2014 at 20:33 UTC
Jump to comment: Most recent file
Comments
Comment #1
mikeryanComment #2
kscheirerdrupal-consistently-use-count-instead-of-sizeof-alias.patch queued for re-testing.
Comment #4
dcam commentedI rerolled the patch in the OP and added a few more changes where sizeof() was used in Symfony and Doctrine tests.
Comment #5
droplet commented- code style problem
- don't hack 3rd part (eg. vendor)
Comment #6
dcam commentedYeah, I noticed the code style problems too. I didn't know if patches should be kept on task and separate issues should be opened for formatting or if those problems should be fixed where they're found. The whole file, core/lib/Drupal/Component/Archiver/ArchiveTar.php, is riddled with style errors.
As for the 3rd party code changes, I knew better. I don't know why I second-guessed myself.
Comment #7
droplet commentedArchiveTar is a modified 3rd party script. #1414508: update system.tar.inc to latest Archive_Tar (Pear)
Comment #8
dcam commentedIn that case should it also be excluded?
Comment #9
longwaveCorrect, we should not change ArchiveTar.php as part of this issue.
Comment #10
ryan.ryan commentedPatch applied cleanly, replacements were made in 8 locations. Looks good.
Comment #11
dcam commentedRemoved ArchiveTar.php changes.
Comment #12
longwaveConfirmed these are the only three lines in modules/ using sizeof, and we should not change any others.
Comment #13
tobiassjosten commentedGood that you amended the patch (RTBC indeed). But I don't see the urgency that you wouldn't allow me to finish what I started?
Comment #14
dries commentedCommitted to 8.x. Thanks.