Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #18299
| From | alex <1j9448a02@lnx159sneakemail.com.invalid> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: imap_search(): $charset parameter default value |
| Date | 2020-07-14 12:33 +0200 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <rek1md$p31$1@gioia.aioe.org> (permalink) |
| References | <rek04m$1bm$1@gioia.aioe.org> |
Il 14/07/20 12:07, alex ha scritto:
> What is?
>
> I did some tests with null, NIL and 0, but I was unable to reach a
> conclusion.
>
> function test($stream, $criteria, $options) {
> $charsets = [
> null,
> NIL,
> 0,
> ];
>
> foreach ($charsets as $charset) {
> try {
> imap_search(
> $stream,
> $criteria,
> $options,
> $charset
> );
> } catch (\Throwable $throwable) {
> printf(
> "%s (%s): %s\n",
> $charset,
> gettype($charset),
> $throwable->getMessage()
> );
> }
> }
> }
>
> test(...);
>
> Output:
>
> (NULL): imap_search() expects parameter 4 to be string, null given
> 0 (integer): imap_search() expects parameter 4 to be string, int given
> 0 (integer): imap_search() expects parameter 4 to be string, int given
I add
$ php -v
PHP 7.4.3 (cli) (built: May 26 2020 12:24:22) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.3, Copyright (c), by Zend Technologies
with Xdebug v2.9.2, Copyright (c) 2002-2020, by Derick Rethans
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
imap_search(): $charset parameter default value alex <1j9448a02@lnx159sneakemail.com.invalid> - 2020-07-14 12:07 +0200
Re: imap_search(): $charset parameter default value alex <1j9448a02@lnx159sneakemail.com.invalid> - 2020-07-14 12:33 +0200
Re: imap_search(): $charset parameter default value "J.O. Aho" <user@example.net> - 2020-07-14 14:46 +0200
Re: imap_search(): $charset parameter default value alex <1j9448a02@lnx159sneakemail.com.invalid> - 2020-07-14 16:05 +0200
csiph-web