Jump to content

Archived

This topic is now archived and is closed to further replies.

takeme2web

Is SPL part of PHP 5.2.11?

Recommended Posts

All,

 

Is Standard PHP Library is part of PHP 5.2.11 version? Or Do I have to download the SPL from some URL?

 

Please let me know.

 

Please note that I have posted the same message in the "Other Scripts" forum too.

 

Thanks

Takeme2web-Bala

Share this post


Link to post
Share on other sites
Is Standard PHP Library is part of PHP 5.2.11 version? Or Do I have to download the SPL from some URL?

 

From the manual

Note: As of PHP 5.3.0 this extension can no longer be disabled and is therefore always available.

 

Please note that I have posted the same message in the "Other Scripts" forum too.

 

Removed. Not only is it against our TOS to double post, the Other Scripts board (whch doesn't actually exist) would be completely unrelated to your question.

Share this post


Link to post
Share on other sites

The SPL was added in PHP 5 (strictly 5.0.0 beta 4) and has been continuously improved upon since that point with new changes coming in the latest versions of PHP.  If you browse to the manual page for a particular method of an SPL class, the version where it was introduced is printed at the top of the page.

 

For example, for IteratorIterator::current:

2jVq

 

As thorpe quoted, as of PHP 5.3.0 the SPL extension cannot be disabled. Before that point, there is no guarantee that it will be enabled (but in my experience it is not common to disable it).

Share this post


Link to post
Share on other sites
echo extension_loaded('spl');

Share this post


Link to post
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.