I tried it and I had the same problem. I checked php.ini and I had the extension disabled (php_spl_types.dll) so I changed that but it still didn't work. I checked and the extension is in the Ext directory. It should work but it is still giving the same error.
chrishea
Nearly a Posting Virtuoso
1,428 posts since Sep 2008
Reputation Points: 210
Solved Threads: 230
In my case (since it isn't working for me either), I changed the short open tag when I tried it. I am running PHP 5.2.10 but my understanding is that it should still run.
According to PHP.net
This extension is available and compiled by default in PHP 5.0.0.
As of PHP 5.3.0 this extension can no longer be disabled and is therefore always available.
chrishea
Nearly a Posting Virtuoso
1,428 posts since Sep 2008
Reputation Points: 210
Solved Threads: 230
PHP 5.2.11 on Win.
Defined classes prefixed with "Spl" are:
SplFileInfo
SplFileObject
SplTempFileObject
SplObjectStorage
When enabling php_spl_types extension:
SplType
SplEnum
SplBool
SplInt
SplFloat
are added.
I'm using this to get the classes:
$classes = get_declared_classes();
foreach($classes as $class) {
if (strpos($class, 'Spl') !== false) echo $class . "\n";
}
It looks like 'SplFixedArray' isn't included before 5.3.0?
digital-ether
Nearly a Posting Virtuoso
1,293 posts since Sep 2005
Reputation Points: 461
Solved Threads: 101
Digital-Ether: Your approach to determining the answer is very intelligent. Should have thought of doing something like that (but of course, I didn't!). Good work.
chrishea
Nearly a Posting Virtuoso
1,428 posts since Sep 2008
Reputation Points: 210
Solved Threads: 230