wa0x6e / Cake-Resque

Resque plugin for CakePHP : for creating background jobs that can be processed offline later
MIT License
159 stars 56 forks source link

Only use DEBUG_BACKTRACE_IGNORE_ARGS for PHP_VERSION >= 5.3.6 #80

Closed RichieB2B closed 9 years ago

RichieB2B commented 9 years ago

When I enable debug (using PHP 5.3.3 on CentOS) I get:

Use of undefined constant DEBUG_BACKTRACE_IGNORE_ARGS - assumed 'DEBUG_BACKTRACE_IGNORE_ARGS' [APP/Plugin/CakeResque/Lib/CakeResque.php, line 144]

I believe this flag was introduced in PHP 5.3.6, so please only use it when appropriate.

wa0x6e commented 9 years ago

Fixed in 4.1.1

RichieB2B commented 9 years ago

Thanks for the fix but you missed two more instances of this bug on lines 189 and 232.