Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit 17f179d

Browse files
committed
Fix PHP 7 BC break in Zend_Amf_Server
The func_get_arg() and func_get_args() functions will no longer return the original value that was passed to a parameter and will instead provide the current value (which might have been modified). (from https://github.com/php/php-src/blob/master/UPGRADING)
1 parent 724719a commit 17f179d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/Zend/Amf/Server.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -767,9 +767,9 @@ public function setClass($class, $namespace = '', $argv = null)
767767
throw new Zend_Amf_Server_Exception('Invalid method or class; must be a classname or object');
768768
}
769769

770-
$argv = null;
770+
$args = null;
771771
if (2 < func_num_args()) {
772-
$argv = array_slice(func_get_args(), 2);
772+
$args = array_slice(func_get_args(), 2);
773773
}
774774

775775
// Use the class name as the name space by default.
@@ -780,7 +780,7 @@ public function setClass($class, $namespace = '', $argv = null)
780780

781781
$this->_classAllowed[is_object($class) ? get_class($class) : $class] = true;
782782

783-
$this->_methods[] = Zend_Server_Reflection::reflectClass($class, $argv, $namespace);
783+
$this->_methods[] = Zend_Server_Reflection::reflectClass($class, $args, $namespace);
784784
$this->_buildDispatchTable();
785785

786786
return $this;

0 commit comments

Comments
 (0)