Skip to content

Commit

Permalink
Partial support for PHP 5.4
Browse files Browse the repository at this point in the history
Bindings portions of the patch re #10504
  • Loading branch information
ex-nerd committed Jun 14, 2012
1 parent 79dc4b5 commit cd670ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions mythtv/bindings/php/MythBackend.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -206,14 +206,14 @@ public function queryProgramRows($query = null, $offset = 1) {
/**/ /**/
public function rescheduleRecording($recordid = -1) { public function rescheduleRecording($recordid = -1) {
if ($recordid == 0) { if ($recordid == 0) {
$this->sendCommand(array('RESCHEDULE_RECORDINGS ', $this->sendCommand(array('RESCHEDULE_RECORDINGS ',
'CHECK 0 0 0 PHP', 'CHECK 0 0 0 PHP',
'', '', '', '**any**')); '', '', '', '**any**'));
} }
else { else {
if ($recordid == -1) if ($recordid == -1)
$recordid = 0; $recordid = 0;
$this->sendCommand(array('RESCHEDULE_RECORDINGS ', $this->sendCommand(array('RESCHEDULE_RECORDINGS ',
'MATCH '.$recordid.' 0 0 - PHP')); 'MATCH '.$recordid.' 0 0 - PHP'));
} }
Cache::clear(); Cache::clear();
Expand Down Expand Up @@ -241,7 +241,7 @@ public function httpRequestAsJson($path, $args = array(), $opts = null) {
} }


$opts['http']['header'] = "Accept: application/json\r\n"; $opts['http']['header'] = "Accept: application/json\r\n";

return $this->httpRequest($path, $args, $opts); return $this->httpRequest($path, $args, $opts);
} }


Expand Down
2 changes: 1 addition & 1 deletion mythtv/bindings/php/MythBase.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function clearCache() {


public function __destruct() { public function __destruct() {
if (!is_null($this->cacheKey)) if (!is_null($this->cacheKey))
Cache::setObject($this->cacheKey, &$this, $this->cacheLifetime); Cache::setObject($this->cacheKey, $this, $this->cacheLifetime);
$this->cacheKey = null; $this->cacheKey = null;
} }


Expand Down

0 comments on commit cd670ec

Please sign in to comment.