Annotation of embedaddon/php/Zend/tests/bug64354.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #64354 (Unserialize array of objects whose class can't be autoloaded fail)
                      3: --FILE--
                      4: <?php
                      5: class B implements Serializable {
                      6:     public function serialize() {
                      7:         throw new Exception("serialize");
                      8:         return NULL;
                      9:     }
                     10: 
                     11:     public function unserialize($data) {
                     12:     }
                     13: }
                     14: 
                     15: $data = array(new B);
                     16: 
                     17: try {
                     18:     serialize($data);
                     19: } catch (Exception $e) { 
                     20:     var_dump($e->getMessage());
                     21: }
                     22: ?>
                     23: --EXPECTF--
                     24: string(9) "serialize"

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>