Closed (fixed)
Project:
OPcache
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Oct 2014 at 07:28 UTC
Updated:
12 Feb 2015 at 20:54 UTC
Jump to comment: Most recent, Most recent file
PHP Fatal error: Can't use function return value in write context in /sites/all/modules/opcache/opcache.admin.inc on line 32
It seems fixed if you use this code:
$trimmed = trim($form_state['values']['opcache_backends']);
if (!empty($trimmed)) {
$backends = preg_split("/\r\n|\n|\r/", $form_state['values']['opcache_backends']);
}| Comment | File | Size | Author |
|---|---|---|---|
| #1 | can_t_use_function-2355395-1.patch | 1.65 KB | legolasbo |
Comments
Comment #1
legolasboI can confirm the bug. Attached patch fixes it.
Comment #2
Anonymous (not verified) commentedFixed on Github. After promoting this from the sandbox, there was an issue with the D.O. repo that I am currently waiting on to be resolved, so I currently cannot push the fix to D.O.