Details
Description
If you pass an object to Zend_Amf_Server and don't specify a namespace it will generate the following error:
Warning: strrpos() expects parameter 1 to be string, object given in /home/norm2782/library/Zend/Amf/Server.php on line 501
Propopsed patch:
// Use the class name as the name space by default. if ($namespace == '') { $className = is_object($class) ? get_class($class) : $class; $namespace = substr($className, 0, strrpos($className, '.')); }
Issue Links
| This issue is related to: | ||||
| ZF-7587 | Amf setClass() ignores pre-initialized objects and creates new objects |
|
|
|
Set component