PageRenderTime 51ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/hphp/test/zend/bad/ext/intl/tests/timezone_clone_basic.php

http://github.com/facebook/hiphop-php
PHP | 14 lines | 10 code | 3 blank | 1 comment | 0 complexity | e58c6940b3e7a98a7c85f7a1fbbead69 MD5 | raw file
Possible License(s): LGPL-2.1, BSD-2-Clause, BSD-3-Clause, MPL-2.0-no-copyleft-exception, MIT, LGPL-2.0, Apache-2.0
  1. <?php
  2. ini_set("intl.error_level", E_WARNING);
  3. $tz1 = IntlTimeZone::createTimeZone('Europe/Amsterdam');
  4. print_r($tz1);
  5. print_r(clone $tz1);
  6. //clone non-owned object
  7. $gmt = IntlTimeZone::getGMT();
  8. print_r($gmt);
  9. print_r(clone $gmt);
  10. ?>
  11. ==DONE==