mirror of
https://github.com/php/php-src.git
synced 2026-04-16 20:41:18 +02:00
PHP requires integer typehints to be written "int" and does not allow "integer" as an alias. This changes type error messages to match the actual type name and avoids confusing messages like "must be of the type integer, integer given".
55 lines
595 B
PHP
55 lines
595 B
PHP
--TEST--
|
|
phpcredits()
|
|
--FILE--
|
|
<?php
|
|
|
|
var_dump(phpcredits());
|
|
var_dump(phpcredits(array()));
|
|
|
|
echo "--\n";
|
|
var_dump(phpcredits(0));
|
|
|
|
echo "--\n";
|
|
var_dump(phpcredits(CREDITS_GROUP));
|
|
|
|
?>
|
|
--EXPECTF--
|
|
PHP Credits
|
|
|
|
PHP Group
|
|
%a
|
|
|
|
Language Design & Concept
|
|
%a
|
|
|
|
%wPHP Authors%w
|
|
%a
|
|
|
|
%wSAPI Modules%w
|
|
%a
|
|
|
|
%wModule Authors%w
|
|
%a
|
|
|
|
%wPHP Documentation%w
|
|
%a
|
|
|
|
PHP Quality Assurance Team
|
|
%a
|
|
|
|
%wWebsites and Infrastructure team%w
|
|
%a
|
|
bool(true)
|
|
|
|
Warning: phpcredits() expects parameter 1 to be int, array given in %sphpcredits.php on line 4
|
|
NULL
|
|
--
|
|
PHP Credits
|
|
bool(true)
|
|
--
|
|
PHP Credits
|
|
|
|
PHP Group
|
|
%a
|
|
bool(true)
|