This is a discussion on Is SPL implemented in C or php within the PHP Language forums, part of the PHP Programming Forums category; I have a C++ background and I now trying to learn PHP. Today I ran across the SPL classes. How ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I have a C++ background and I now trying to learn PHP. Today I ran
across the SPL classes. How efficient are these classes? Are they ultimately natively supported by the PHP interpretor, or are they simply a number of classes entirely implemented in php? |
|
|||
|
..oO(kurt.krueckeberg@gmail.com)
>I have a C++ background and I now trying to learn PHP. Today I ran >across the SPL classes. How efficient are these classes? Are they >ultimately natively supported by the PHP interpretor, or are they >simply a number of classes entirely implemented in php? The SPL extension is written in C. You can download the PHP source tarball and have a look at it. Micha |
|
|||
|
>
> The SPL extension is written in C. You can download the PHP source > tarball and have a look at it. Just so that I'm certain. Classes such as SplDoublyLinkedList, SplStack, SplQueue, SplHeap, SplMaxHeap and SplMinHeap are native types supported in the PHP interpreter. I grepped on the PHP source code (on "*.h" and "*.c") for SplDoublyLinkedList and grep didn't find any hits. |
|
|||
|
Greetings, kurt.krueckeberg@gmail.com.
In reply to Your message dated Thursday, June 12, 2008, 02:46:01, >> >> The SPL extension is written in C. You can download the PHP source >> tarball and have a look at it. > Just so that I'm certain. Classes such as SplDoublyLinkedList, > SplStack, SplQueue, SplHeap, SplMaxHeap and SplMinHeap are native > types > supported in the PHP interpreter. I grepped on the PHP source code (on > "*.h" and "*.c") for SplDoublyLinkedList and grep didn't find any > hits. Grep the php_spl_types extension sources. It is PECL extension, just to notify. http://pecl.php.net/ -- Sincerely Yours, AnrDaemon <anrdaemon@freemail.ru> |
|
|||
|
> Grep the php_spl_types extension sources. > It is PECL extension, just to notify.http://pecl.php.net/ o.k. thank you. I didn't realize it was part of PECL. |