Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > it.comp.www.php > #21047
| Path | csiph.com!feeder.erje.net!2.eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail |
|---|---|
| From | alex <1j9448a02@lnx159sneakemail.com.invalid> |
| Newsgroups | it.comp.www.php |
| Subject | Re: valore non serializzabile |
| Date | Tue, 19 Jul 2016 20:53:54 +0200 |
| Organization | Aioe.org NNTP Server |
| Lines | 23 |
| Message-ID | <nmlt01$cn9$1@gioia.aioe.org> (permalink) |
| References | <nmlj6i$1t92$1@gioia.aioe.org> <7acfe8ce-592b-4ac7-af81-9d5efc2fecd5@googlegroups.com> |
| NNTP-Posting-Host | hVHjWMHH6R1YLBcuxglMAg.user.gioia.aioe.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-Complaints-To | abuse@aioe.org |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 |
| X-Notice | Filtered by postfilter v. 0.8.2 |
| Xref | csiph.com it.comp.www.php:21047 |
Show key headers only | View raw
Il 19/07/2016 18:53, fmassei@gmail.com ha scritto:
> On Tuesday, July 19, 2016 at 12:06:45 PM UTC-4, alex wrote:
>> $value = function () {};
>> /*
>> * prima si dovrebbe controllare se $value è serializzabile...
>> * if (...) {...}
>> */
>> serialize($value);
>>
>> PHP Fatal error: Uncaught Exception: Serialization of 'Closure' is not
>> allowed
>>
>> Per evitare l'errore fatale, c'è un modo per sapere in anticipo se un
>> valore è serializzabile?
>>
>
> Le uniche due cose non serializzabili sono resources e Closures, basta che
> controlli con questi due if.
>
> Ciao!
>
serialize(STDOUT); // funziona
Back to it.comp.www.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
valore non serializzabile alex <1j9448a02@lnx159sneakemail.com.invalid> - 2016-07-19 18:06 +0200
Re: valore non serializzabile fmassei@gmail.com - 2016-07-19 09:53 -0700
Re: valore non serializzabile alex <1j9448a02@lnx159sneakemail.com.invalid> - 2016-07-19 20:53 +0200
Re: valore non serializzabile fmassei@gmail.com - 2016-07-19 12:23 -0700
Re: valore non serializzabile alex <1j9448a02@lnx159sneakemail.com.invalid> - 2016-07-20 09:53 +0200
Re: valore non serializzabile Alessandro Pellizzari <shuriken@amiran.it> - 2016-07-20 10:34 +0100
Re: valore non serializzabile alex <1j9448a02@lnx159sneakemail.com.invalid> - 2016-07-20 14:49 +0200
Re: valore non serializzabile fmassei@gmail.com - 2016-07-20 08:09 -0700
Re: valore non serializzabile alex <1j9448a02@lnx159sneakemail.com.invalid> - 2016-07-20 19:36 +0200
Re: valore non serializzabile fmassei@gmail.com - 2016-07-20 10:43 -0700
Re: valore non serializzabile alex <1j9448a02@lnx159sneakemail.com.invalid> - 2016-07-21 17:37 +0200
Re: valore non serializzabile fmassei@gmail.com - 2016-07-21 08:51 -0700
Re: valore non serializzabile fmassei@gmail.com - 2016-07-20 08:08 -0700
csiph-web