SPL - anyone had any luck?
4 posts
• Page 1 of 1
SPL - anyone had any luck?
I'm trying to use classes that utilize SPL ( http://us2.php.net/manual/en/ref.spl.php ) but compilation fails with the following error:
CompileError: The class 'MyClass' is incomplete - its base class or interface is unknown.
MyClass.php looks like this:
abstract class MyClass extends MyOtherClass implements Countable, IteratorAggregate, Serializable { ... }
Thanks for your input.
CompileError: The class 'MyClass' is incomplete - its base class or interface is unknown.
MyClass.php looks like this:
abstract class MyClass extends MyOtherClass implements Countable, IteratorAggregate, Serializable { ... }
Thanks for your input.
- jfburns@codeplex
- Posts: 15
- Joined: January 7th, 2012, 8:57 pm
RE: SPL - anyone had any luck?
getdeclaredinterfaces() is showing me that Countable is the culprit. Any ideas/workarounds?
- jfburns@codeplex
- Posts: 15
- Joined: January 7th, 2012, 8:57 pm
RE: SPL - anyone had any luck?
OK I got this working by hard coding the interfaces.
- jfburns@codeplex
- Posts: 15
- Joined: January 7th, 2012, 8:57 pm
RE: SPL - anyone had any luck?
Hi,
currently SPL isn't bundled because the work is still in progress. If you need the interfaces, exceptions or classdefinitions you may use the PHP-files in the source-distribution in Libraries/SPL. There should be everything what can be found in current PHP version 5.1.x.
Daniel
currently SPL isn't bundled because the work is still in progress. If you need the interfaces, exceptions or classdefinitions you may use the PHP-files in the source-distribution in Libraries/SPL. There should be everything what can be found in current PHP version 5.1.x.
Daniel
- HDaniel@codeplex
- Posts: 4
- Joined: January 7th, 2012, 8:57 pm
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 6 guests