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

Commit d2b3b69

Browse files
committed
Revert "Add PHP 7.2 support"
This reverts commit 3049251.
1 parent 3049251 commit d2b3b69

File tree

5 files changed

+9
-17
lines changed

5 files changed

+9
-17
lines changed

library/Zend/Cache/Backend.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function __construct(array $options = array())
7676
public function setDirectives($directives)
7777
{
7878
if (!is_array($directives)) Zend_Cache::throwException('Directives parameter must be an array');
79-
foreach ($directives as $name => $value) {
79+
while (list($name, $value) = each($directives)) {
8080
if (!is_string($name)) {
8181
Zend_Cache::throwException("Incorrect option name : $name");
8282
}

library/Zend/Config/Yaml.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ protected static function _decodeYaml($currentIndent, &$lines)
289289
{
290290
$config = array();
291291
$inIndent = false;
292-
foreach ($lines as $n => $line) {
292+
while (list($n, $line) = each($lines)) {
293293
$lineno = $n + 1;
294294

295295
$line = rtrim(preg_replace("/#.*$/", "", $line));

library/Zend/Http/UserAgent/Features/Adapter/TeraWurfl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public static function getAllCapabilities(TeraWurfl $wurflObj)
8888
if (!is_array($group)) {
8989
continue;
9090
}
91-
foreach ($group as $key => $value) {
91+
while (list ($key, $value) = each($group)) {
9292
if (is_bool($value)) {
9393
// to have the same type than the official WURFL API
9494
$features[$key] = ($value ? 'true' : 'false');

library/Zend/Rest/Route.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -236,14 +236,12 @@ public function match($request, $partial = false)
236236
/**
237237
* Assembles user submitted parameters forming a URL path defined by this route
238238
*
239-
* @param array $data An array of variable and value pairs used as parameters
240-
* @param bool $reset Weither to reset the current params
241-
* @param bool $encode Weither to return urlencoded string
242-
* @param bool $partial
243-
*
239+
* @param array $data An array of variable and value pairs used as parameters
240+
* @param bool $reset Weither to reset the current params
241+
* @param bool $encode Weither to return urlencoded string
244242
* @return string Route path with user submitted parameters
245243
*/
246-
public function assemble($data = array(), $reset = false, $encode = true, $partial = false)
244+
public function assemble($data = array(), $reset = false, $encode = true)
247245
{
248246
if (!$this->_keysSet) {
249247
if (null === $this->_request) {

library/Zend/XmlRpc/Value.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -486,19 +486,13 @@ protected static function _createSimpleXMLElement(&$xml)
486486
*/
487487
protected static function _extractTypeAndValue(SimpleXMLElement $xml, &$type, &$value)
488488
{
489-
foreach ($xml as $type => $value) {
490-
$type = $value;
491-
$value = $value;
492-
}
489+
list($type, $value) = each($xml);
493490

494491
if (!$type and $value === null) {
495492
$namespaces = array('ex' => 'http://ws.apache.org/xmlrpc/namespaces/extensions');
496493
foreach ($namespaces as $namespaceName => $namespaceUri) {
497494
$namespaceXml = $xml->children($namespaceUri);
498-
foreach ($namespaceXml as $type => $value) {
499-
$type = $value;
500-
$value = $value;
501-
}
495+
list($type, $value) = each($namespaceXml);
502496
if ($type !== null) {
503497
$type = $namespaceName . ':' . $type;
504498
break;

0 commit comments

Comments
 (0)