PageRenderTime 41ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/hphp/test/zend/bad/ext/mysqli/tests/mysqli_constants_categories.php

http://github.com/facebook/hiphop-php
PHP | 14 lines | 12 code | 2 blank | 0 comment | 3 complexity | bf94ffe9ca7da6de1a6e7fa317026774 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. $constants = get_defined_constants(true);
  3. foreach ($constants as $group => $consts) {
  4. foreach ($consts as $name => $value) {
  5. if (stristr($name, 'mysqli')) {
  6. if ('mysqli' != $group)
  7. printf("found constant '%s' in group '%s'. expecting group 'mysqli'\n", $name, $group);
  8. }
  9. }
  10. }
  11. print "done!";
  12. ?>