--TEST-- Dom\XMLDocument::createFromString 03 --EXTENSIONS-- dom --FILE-- ', -1); } catch (ValueError $e) { echo $e->getMessage(), "\n"; } foreach ($flags as $flag) { var_dump(Dom\XMLDocument::createFromString('', $flag) instanceof Dom\XMLDocument); } ?> --EXPECTF-- Dom\XMLDocument::createFromString(): Argument #2 ($options) contains invalid flags (allowed flags: %s) bool(true) bool(true) bool(true) bool(true) bool(true) bool(true) bool(true) bool(true) bool(true) bool(true) bool(true) bool(true) bool(true) bool(true) bool(true) bool(true)