I have the following command callback function defined in my .drush.inc file:
function drush_bv_ftp_products() {
echo $aadfadf;
var_dump(error_get_last());
}
Assume hook_drush_command()
is properly implemented and has an alias of 'abc'.
When I run drush site.local abc
I get NULL for output. What I would expect to see is similar to:
Array
(
[type] => 8
[message] => Undefined variable: aadfadf
[file] => ...
[line] => ...
)
I'm running php 5.3.28 so error_get_last
is there. Any thoughts from the Drush masters out there as to what could be going wrong here?