com web/rmtools: Fix pgo setup check: include/BuildVC.php

From: Date: Wed, 04 Apr 2018 14:35:47 +0000
Subject: com web/rmtools: Fix pgo setup check: include/BuildVC.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-26898@lists.php.net to get a copy of this message
Commit: c0e176ad6c292ba50a371986c95a478fabc42658 Author: Anatol Belski <ab@php.net> Wed, 4 Apr 2018 16:35:47 +0200 Parents: dc0f03803dffed5aecfc69f796a1e9f37984db5d Branches: master Link: http://git.php.net/?p=web/rmtools.git;a=commitdiff;h=c0e176ad6c292ba50a371986c95a478fabc42658 Log: Fix pgo setup check Changed paths: M include/BuildVC.php Diff: diff --git a/include/BuildVC.php b/include/BuildVC.php index cc526c5..f81e1bd 100644 --- a/include/BuildVC.php +++ b/include/BuildVC.php @@ -127,11 +127,11 @@ class BuildVC { $cmd = 'phpsdk_pgo --ready'; $ret = exec_single_log($cmd, $this->build_dir, $env); - if (!$ret || 0 !== (int)$ret["return_value"]) { + if (!$ret) { throw new \Exception('phpsdk_pgo --ready failed' . (isset($ret["log"]) ? ": \n$ret[log]" : "")); } - return 0 == $ret["return_value"]; + return 0 == (int)$ret["return_value"]; } function pgoInit()

« previous php.webmaster (#26898) next »