Commit:    c0e176ad6c292ba50a371986c95a478fabc42658
Author:    Anatol Belski <a...@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()


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to