Re: does php4 have language level classes
| From: | Jochem Maas | Date: | Fri, 15 Jun 2007 09:21:13 +0000 |
| Subject: | Re: does php4 have language level classes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-257050@lists.php.net to get a copy of this message | ||
Nathan Nobbe wrote:
> all,
>
> php5 has language-level classes that ship w/ many of the extensions.
> PDO <http://www.php.net/manual/en/ref.pdo.php> is a
> primary example.
> recently, through a sort-of round-about way, i have been working w/
> the serialize function, which lead me to discover
> It is not possible to serialize PHP built-in objects.
> From the page
> <http://us2.php.net/manual/en/function.serialize.php> on the
> serialize function.
> What i would like to know is; are there any language-level classes
> in the core or extensions of PHP4, or does it just allow user level
> classes to be defined and thats it?
there is at least one ...
tina:~# php -v
PHP 4.3.10-19 (cli) (built: Mar 5 2007 20:46:29)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
with the ionCube PHP Loader v2.5, Copyright (c) 2002-2004, by ionCube Ltd.
tina:~# php -r '
> $r = array(); $r = (object)$r; var_dump($r);'
object(stdClass)(0) {
}
>
> thanks,
>
> -nathan
>