mirror of
https://github.com/php/php-src.git
synced 2025-01-22 03:34:19 +08:00
ce1d69a1f6
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".
19 lines
447 B
PHP
19 lines
447 B
PHP
--TEST--
|
|
posix_initgroups(): Basic tests
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('posix')) die('skip - POSIX extension not loaded');
|
|
if (!function_exists('posix_initgroups')) die('skip posix_initgroups() not found');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
|
|
var_dump(posix_initgroups('foo', 'bar'));
|
|
var_dump(posix_initgroups(NULL, NULL));
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Warning: posix_initgroups() expects parameter 2 to be int, string given in %s on line %d
|
|
bool(false)
|
|
bool(false)
|