mirror of
https://github.com/php/php-src.git
synced 2024-10-21 00:12:34 +00:00
80cecdb41f
- Cleanup API - Added handling for circular references - Renamed functions. # Original patch by Pierre
31 lines
537 B
PHP
31 lines
537 B
PHP
--TEST--
|
|
filter_id()
|
|
--FILE--
|
|
<?php
|
|
|
|
var_dump(filter_id("stripped"));
|
|
var_dump(filter_id("string"));
|
|
var_dump(filter_id("url"));
|
|
var_dump(filter_id("int"));
|
|
var_dump(filter_id("none"));
|
|
var_dump(filter_id(array()));
|
|
var_dump(filter_id(-1));
|
|
var_dump(filter_id(0,0,0));
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECTF--
|
|
int(513)
|
|
int(513)
|
|
int(518)
|
|
int(257)
|
|
bool(false)
|
|
|
|
Warning: filter_id() expects parameter 1 to be string, array given in %s on line %d
|
|
NULL
|
|
bool(false)
|
|
|
|
Warning: filter_id() expects exactly 1 parameter, 3 given in %s on line %d
|
|
NULL
|
|
Done
|