]> granicus.if.org Git - php/commitdiff
Fixed test (shift operators throw Error)
authorDmitry Stogov <dmitry@zend.com>
Mon, 6 Jul 2015 09:28:14 +0000 (12:28 +0300)
committerDmitry Stogov <dmitry@zend.com>
Mon, 6 Jul 2015 09:28:14 +0000 (12:28 +0300)
tests/lang/operators/bitwiseShiftLeft_variationStr.phpt

index 6a44c5d630a204a84ca76b5d1a41cc59009ff9c6..0176d907389b143447a2cfd77268a85bdfdd552c 100644 (file)
@@ -19,7 +19,7 @@ foreach ($strVals as $strVal) {
          echo "--- testing: '$strVal' << '$otherVal' ---\n";
       try {
         var_dump(strVal<<$otherVal);
-      } catch (Exception $e) {
+      } catch (Throwable $e) {
         echo "Exception: " . $e->getMessage() . "\n";
       }
    }