Permalink
Browse files

Partial support for PHP 5.4

Bindings portions of the patch re #10504
  • Loading branch information...
1 parent 79dc4b5 commit cd670ec7bf5f04f1ba67b5a7cbc00374479eb9b0 @ex-nerd ex-nerd committed Jun 14, 2012
Showing with 4 additions and 4 deletions.
  1. +3 −3 mythtv/bindings/php/MythBackend.php
  2. +1 −1 mythtv/bindings/php/MythBase.php
@@ -206,14 +206,14 @@ public function queryProgramRows($query = null, $offset = 1) {
/**/
public function rescheduleRecording($recordid = -1) {
if ($recordid == 0) {
- $this->sendCommand(array('RESCHEDULE_RECORDINGS ',
+ $this->sendCommand(array('RESCHEDULE_RECORDINGS ',
'CHECK 0 0 0 PHP',
'', '', '', '**any**'));
}
else {
if ($recordid == -1)
$recordid = 0;
- $this->sendCommand(array('RESCHEDULE_RECORDINGS ',
+ $this->sendCommand(array('RESCHEDULE_RECORDINGS ',
'MATCH '.$recordid.' 0 0 - PHP'));
}
Cache::clear();
@@ -241,7 +241,7 @@ public function httpRequestAsJson($path, $args = array(), $opts = null) {
}
$opts['http']['header'] = "Accept: application/json\r\n";
-
+
return $this->httpRequest($path, $args, $opts);
}
@@ -47,7 +47,7 @@ public function clearCache() {
public function __destruct() {
if (!is_null($this->cacheKey))
- Cache::setObject($this->cacheKey, &$this, $this->cacheLifetime);
+ Cache::setObject($this->cacheKey, $this, $this->cacheLifetime);
$this->cacheKey = null;
}

0 comments on commit cd670ec

Please sign in to comment.