mirror of
https://github.com/php/php-src.git
synced 2026-04-14 03:22:58 +02:00
Instead of checking the type manually. Peculiarily the zpp message does not use "array or object", but that's a general issue. And I guess it's good that object support is not being advertised.
14 lines
319 B
PHP
14 lines
319 B
PHP
--TEST--
|
|
Testing error on null parameter 1 of http_build_query()
|
|
--CREDITS--
|
|
Pawel Krynicki <pawel.krynicki [at] xsolve [dot] pl>
|
|
#testfest AmsterdamPHP 2012-06-23
|
|
--FILE--
|
|
<?php
|
|
|
|
$result = http_build_query(null);
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Warning: http_build_query() expects parameter 1 to be array, null given in %s on line %d
|