PageRenderTime 56ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/hphp/test/zend/bad/ext/pcre/tests/recursion_limit.php

http://github.com/facebook/hiphop-php
PHP | 9 lines | 6 code | 3 blank | 0 comment | 0 complexity | 1fe76a538f52d21b33dd949722c4f954 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. var_dump(preg_match_all('/\p{Ll}(\p{L}((\p{Ll}\p{Ll})))/', 'aeiou', $dummy));
  3. var_dump(preg_last_error() === PREG_RECURSION_LIMIT_ERROR);
  4. var_dump(preg_match_all('/\p{Ll}\p{L}\p{Ll}\p{Ll}/', 'aeiou', $dummy));
  5. var_dump(preg_last_error() === PREG_NO_ERROR);
  6. ?>