pear2/Net_RouterOS

Problem with APC Adapter

synchris opened this issue · 3 comments

PHP Warning: Invalid argument supplied for foreach() in /var/www/php/PEAR2/Cache/SHM/Adapter/APC.php on line 125

PHP Warning: array_search() expects parameter 2 to be array, string given in /var/www/php/PEAR2/Cache/SHM/Adapter/APC.php on line 185

I tried APC 3.1.6 and I got less errors but stil do not work.

Thank you for taking an interest in persistent connections. They are somewhat poorly tested due to the lack of capable automated testing tools, so issues like yours were bound to come up eventually.

Now... onto trying to pinpoint the cause... Do these errors occur in this order? Are there any more? Most importantly of all - are there any errors, rather than warnings? (My first guess is there's an error, which then cascades to these warnings)

Do those errors occur during the first, second or later execution of a PHP file? Or perhaps "seemingly randomly" when the app is available for use (potentially accessed concurrently...)?

Oh, and do you have any somewhat minimal code that can reproduce this (I kind of doubt it, given the "timing" nature of these types of issues, but it's worth asking anyway...)?

The problem persist only on CentoOS 7 and up. It seems it does not work well with APC.

OK... and what about any of my questions above?