Enforce modularity boundaries for classes
[hiphop-php.git] / hphp / test / slow / ext_math / sqrt.php
blobb2b3cc564bb6bec9667dfeaf952ce845f8d04c64
1 <?hh
5 <<__EntryPoint>>
6 function main_sqrt() {
7 try { var_dump(sqrt('foo')); } catch (Exception $e) { echo "\n".'Warning: '.$e->getMessage().' in '.__FILE__.' on line '.__LINE__."\n"; }
8 try { var_dump(sqrt('16')); } catch (Exception $e) { echo "\n".'Warning: '.$e->getMessage().' in '.__FILE__.' on line '.__LINE__."\n"; }
9 try { var_dump(sqrt(varray[])); } catch (Exception $e) { echo "\n".'Warning: '.$e->getMessage().' in '.__FILE__.' on line '.__LINE__."\n"; }