com web/rmtools: improve error handling on unknown compiler: include/PeclBranch.php

From: Date: Mon, 31 Jul 2017 10:14:37 +0000
Subject: com web/rmtools: improve error handling on unknown compiler: include/PeclBranch.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-26272@lists.php.net to get a copy of this message
Commit: b758a1cd5ed4a47ed59dabf8eaab06b32f6b79f3 Author: Anatol Belski <ab@php.net> Mon, 31 Jul 2017 12:14:37 +0200 Parents: 7e48c4b962d74f1a4131520434ed4063db17534c Branches: master Link: http://git.php.net/?p=web/rmtools.git;a=commitdiff;h=b758a1cd5ed4a47ed59dabf8eaab06b32f6b79f3 Log: improve error handling on unknown compiler Changed paths: M include/PeclBranch.php Diff: diff --git a/include/PeclBranch.php b/include/PeclBranch.php index ec2d341..613e1e0 100644 --- a/include/PeclBranch.php +++ b/include/PeclBranch.php @@ -104,6 +104,7 @@ class PeclBranch { case 'icc': case 'gcc': case 'clang': + default: throw new \Exception("$compiler not supported yet. Not implemented"); break; }

« previous php.webmaster (#26272) next »