Jump to content

Is SPL part of PHP 5.2.11?


takeme2web

Recommended Posts

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.

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).

Archived

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

×
×
  • 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.