473,508 Members | 2,229 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is SPL implemented in C or php

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?

Jun 27 '08 #1
5 1558
..oO(ku**************@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
Jun 27 '08 #2
On Jun 11, 5:12 pm, Michael Fesser <neti...@gmx.dewrote:
The SPL extension is written in C. You can download the PHP source
tarball and have a look at it.
Thanks for the reply.

--kurt
Jun 27 '08 #3
>
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.

Jun 27 '08 #4
Greetings, ku**************@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 <an*******@freemail.ru>

Jun 27 '08 #5

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.
Jun 27 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
3179
by: Leif K-Brooks | last post by:
Has anyone ever tried implementing a simple unstructured BASIC dialect in Python? I'm getting interested in language implementation, and looking at a reasonably simple example like that could be...
6
2026
by: Chris Dunaway | last post by:
I have a simple interface with two methods, MethodA, and MethodB. I also have a class with implements the interface. The class provides a full implementation for MethodA but for special reasons,...
3
10409
by: lodge.stuart | last post by:
Hi I've written a small AJAX-style UI - although it's not strictly AJAX as it uses HTML fragments rather than XML This UI works fine for me and the majority of users. However, a few users...
6
2659
by: Boaz Ben-Porat | last post by:
I heard somewhere that the DataGrid class is implemented as a XML graph in memory. Is this true ? TIA Boaz Ben-Porat DataPharm a/s Denmark
6
1743
by: Mountain Bikn' Guy | last post by:
When one gets a row from a database (ie, a DataTable), the row contains a typed value in each column. How is this typically implemented behind scenes. I want to build this functionality myself. The...
4
27920
by: m96 | last post by:
hi, i'm trying to make a query to a ldap server (version v2 or v3 doen't matter) with c#. the query works just fine but the problem is that i can't read the custom attributes/fields, since .net...
12
2190
by: cody | last post by:
Why can I overload operator== and operator!= separately having different implementations and additionally I can override equals() also having a different implementation. Why not forbid...
22
2398
by: sujilc | last post by:
This question seems to be silly. Can ony one figure out the default functions implemented by compiler when we decalre a class like class A { } According to me this declaration will define...
4
36544
by: dba123 | last post by:
I took the code from here and tweaked it to our needs. One of the methods is erroring out throwing an exception and I'm not sure why: object IConfigurationSectionHandler.Create(object parent,...
12
1536
by: Author | last post by:
I know the basic differences between a struct and a class, but apparently not good enough to know why some types/concepts are implemented as struct whereas most types are implemented as class. For...
0
7129
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7333
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7398
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7061
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5057
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3208
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3194
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1566
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
428
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.