Closed (fixed)
Project:
Drush
Component:
Base system (internal API)
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Apr 2011 at 12:04 UTC
Updated:
21 Nov 2011 at 16:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
moshe weitzman commentedI'm seeing these now too, possibly since we started using the drush error handler instead of the drupal error handler. Attached is a proposed fix for supressing DEPRECATED errors. Does it look OK to folks? boolean operators are not my forte.
Patch is against 4.x. Should apply fine to both.
Comment #2
moshe weitzman commentedCommitted slight different fix to 5 and 4 branches. Now we match drupal core with
if ($errno & (E_ALL ^ E_DEPRECATED)) {Sorry I didn't figure out what the problem was until after the 4.5 release.
Comment #3
makara commentedE_DEPRECATED was added in PHP 5.3.
Drupal 6 is using
And Drupal 7's error handler is like
I'd suggest both. See the patch.
Comment #4
bibo commentedRunning the latest drush dev version seems to generate this error (on my PHP 5.2.12 / Zend Server / Mac OS):
makara's patch in the previous comment probably fixes this error.
Comment #5
moshe weitzman commentedThe comment you removed was helpful IMO. lets also add a comment like 'drush suppresses deprecated errors, just as drupal does.'
Comment #6
makara commentedI don't speak good English. Please check it and feel free to correct me.
Comment #7
moshe weitzman commentedCommitted to 4 and 5. Thanks.
Comment #8
msonnabaum commentedBoth branch's tests are failing with this patch. No time to look into it at the moment.
Comment #9
msonnabaum commentedBoth passing now. False alarm perhaps.
Comment #10
anarcat commentedI thought this was fixed in 5.x - i was asking for a merge for another fix like this one in #1129332: drush doesn't respect existing error_reporting settings. I am surprised this was broken in 5.x... But for sanity's sake, we should probably merge the other patches too...
Comment #12
blueprint commentedHejo a note from an aegir user:
PHP 5.3.3-7+squeeze3 with Suhosin-Patch (cli) (built: Jun 28 2011 08:24:40)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with XCache v1.3.0, Copyright (c) 2005-2009, by mOo
with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH
Aegir 1.4 (from the kuombit debian repos 1.4)
Drush 4.5 (from squeeze-backports)
... without the patch /usr/share/drush/includes/environment.inc (in #6) aegir was really flaking out. After patching, one could install/delete etc (was functional with 3.x drush?!!!!)
I'm a bit confused by this, since version 4.4 on other Debian squeeze hosts with Aegir 1.3 did not have this kind of problem ... hmmm
Comment #13
chrisschaub commentedJust to add a note in case anyone finds this. If you are having issues with php 5.3.2 and Aegir/Drush provisioning drupal 6 sites, this patch in #6 might fix the issue -- especially if it looks like a memory issue. I seems that these php 5.3 warnings can cause issues with Drush and Aegir finishing a site install.
Comment #14
blueprint commentedJust confirming (as in #12) that #13 works.