Everything works fine on my local machine. But when uploading this piece of code to my live server I'm getting a weird warning ...
usort($modules, array('util_SortItem', 'ByOrder'));
Causes this warning:
Warning: include_once(sc3lycp6hmyab.php) [function.include-once]: failed to open stream: No such file or directory in /opt/www/xxx/web/private/Zend/Loader.php on line 146
Warning: include_once() [function.include]: Failed opening 'sc3lycp6hmyab.php' for inclusion (include_path='.:/usr/share/php:/usr/share/开发者_如何学JAVApear') in /opt/www/xxx/web/private/Zend/Loader.php on line 146
When I remove the usort from my code the warnings disapear.
Any ideas on how I can get rid of this warning?
This has nothing to do with the usort
, but with the ByOrder
method of the Util_SortItem
class that you are telling usort()
to call.
You should take a look into the file where that class is defined to see what it does to trigger the error.
One possibility is that it tries to include a class that doesn't exist, which triggers Zend's Autoloader; the other that Zend is trying to create some sort of cache file.
To me it looks like those spammer names. I'd guess it's not related whatsoever. I think you might have something unescaped in your application and it results in someone trying to exploit it ;)
I haven't been able to sort out the isue but I got rid of it by merging two queries and sorting on my SQL server.
精彩评论