/hphp/test/zend/bad/ext/mysqli/tests/mysqli_constants_categories.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
- <?php
- $constants = get_defined_constants(true);
- foreach ($constants as $group => $consts) {
- foreach ($consts as $name => $value) {
- if (stristr($name, 'mysqli')) {
- if ('mysqli' != $group)
- printf("found constant '%s' in group '%s'. expecting group 'mysqli'\n", $name, $group);
- }
- }
- }
- print "done!";
- ?>