Skip to content

Commit

Permalink
MDL-52361 core: patch Horde library for PHP7 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
marinaglancy committed Dec 8, 2015
1 parent 13ce9a3 commit 2cebc82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/horde/framework/Horde/Imap/Client/Socket.php
Expand Up @@ -3245,7 +3245,7 @@ protected function _parseEnvelope(Horde_Imap_Client_Tokenize $data)

if (is_string($val)) {
// These entries are text fields.
$ret->$env_data[$key] = substr($val, 0, $env_str);
$ret->{$env_data[$key]} = substr($val, 0, $env_str);
} else {
// These entries are address structures.
$group = null;
Expand Down Expand Up @@ -3287,7 +3287,7 @@ protected function _parseEnvelope(Horde_Imap_Client_Tokenize $data)
}
}

$ret->$env_data[$key] = $tmp;
$ret->{$env_data[$key]} = $tmp;
}

++$key;
Expand Down
1 change: 1 addition & 0 deletions lib/horde/readme_moodle.txt
Expand Up @@ -8,6 +8,7 @@ Description of import of Horde libraries
# Copy the following script and store it on /tmp, change it's execute bit, and run it, passing
in your path to Horde (the directory you've cloned the repository):
/tmp/copyhorde.sh ~/git/ext/horde/
# MDL-52361 patched for PHP7 compatibility, after upgrade make sure it's updated upstream and remove this line

====
#!/bin/sh
Expand Down

0 comments on commit 2cebc82

Please sign in to comment.