문제

I'm writing a WordPress plugin that uses Raven, which uses autoload in the following way:

ini_set('unserialize_callback_func', 'spl_autoload_call');
spl_autoload_register(array(new self, 'autoload'));

However, some users of the plugin have ini_set disabled by their host providers, and an error gets thrown when the plugin is activated:

Warning: ini_set() has been disabled for security reasons in...

Is there a way I can get around using ini_set in this case?

I guess my real question is if ini_set necessary when using spl_autoload_register or not?

도움이 되었습니까?

해결책

This answer states that you probably don't need to set unserialize_callback_func anymore when using spl_autoload_register().

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top