Running simpletests with E_STRICT enabled on Drupal 6 (with PHP 5.2.14) I get tons of strict notices: "Only variables can be passed by reference". Patch following.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | strict_notices-1162962-1.patch | 675 bytes | mikeryan |
Running simpletests with E_STRICT enabled on Drupal 6 (with PHP 5.2.14) I get tons of strict notices: "Only variables can be passed by reference". Patch following.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | strict_notices-1162962-1.patch | 675 bytes | mikeryan |
Comments
Comment #1
mikeryanComment #2
kfritscheI can confirm, this patch solves the strict warnings.
Comment #3
arlinsandbulte commentedFixed. I modified the patch a bit to elimiate the intermediate variable and put everything back on one line.
Commit: http://drupalcode.org/project/date.git/commit/7797779
Comment #5
kfritscheWarning still exists.
array_pop and end uses the variable as reference, so it is not possible to do this in one line.
Patch #1 works fine.
Comment #6
arlinsandbulte commentedAh, yes. You are correct.
Thanks!
http://drupalcode.org/project/date.git/commit/d8e713c
Comment #7
arlinsandbulte commented