View Issue Details

IDProjectCategoryView StatusLast Update
2290Composrcorepublic2016-07-15 13:23
ReporterChris Graham Assigned ToChris Graham  
PrioritynormalSeverityfeature 
Status resolvedResolutionfixed 
Summary2290: New is_cli function
DescriptionWe have this pattern copy and pasted in our code a lot:
((php_function_allowed('php_sapi_name')) && (php_sapi_name() == 'cli') && (cms_srv('REMOTE_ADDR') == ''));

Move this to a proper function, as the code is a bit complex.
TagsNo tags attached.
Attach Tags
Time estimation (hours)1
Sponsorship open

Sponsor

Date Added Member Amount Sponsored

Activities

Chris Graham

2016-03-14 19:57

administrator   ~3439

Also standardise the 'no_fatal_cron_errors' parameter, into a is_headless function, based off is_cli combined with 'no_fatal_cron_errors'.

Chris Graham

2016-07-15 13:22

administrator   ~4134

Implemented. My comment doesn't apply, as PHP notices can now be ignored via setup.

Issue History

Date Modified Username Field Change
2016-03-14 19:50 Chris Graham New Issue
2016-03-14 19:57 Chris Graham Note Added: 0003439
2016-07-15 13:22 Chris Graham Note Added: 0004134
2016-07-15 13:22 Chris Graham Status Not Assigned => Resolved
2016-07-15 13:22 Chris Graham Resolution open => fixed
2016-07-15 13:22 Chris Graham Assigned To => Chris Graham