Fix for #3331

Fix for #3331
It's going to be removed in 2.6? Or removed in 3.0?

> http://phpdoc.org/docs/latest/references/phpdoc/tags/deprecated.html
> Starting with the given version, the function will be removed or may be removed without further notice.