SPL - anyone had any luck?

Discussion about the open-source Phalanger [?] project.

SPL - anyone had any luck?

Postby jfburns@codeplex » September 13th, 2006, 2:12 am

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.

jfburns@codeplex
 
Posts: 15
Joined: January 7th, 2012, 8:57 pm

RE: SPL - anyone had any luck?

Postby jfburns@codeplex » September 13th, 2006, 2:23 am

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?

Postby jfburns@codeplex » September 13th, 2006, 3:07 am

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?

Postby HDaniel@codeplex » September 13th, 2006, 10:06 am

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
HDaniel@codeplex
 
Posts: 4
Joined: January 7th, 2012, 8:57 pm


Return to Phalanger project

Who is online

Users browsing this forum: No registered users and 23 guests

cron

User Control Panel

Login

Who is online

In total there are 23 users online :: 0 registered, 0 hidden and 23 guests (based on users active over the past 5 minutes)
Most users ever online was 256 on March 28th, 2024, 9:42 am

Users browsing this forum: No registered users and 23 guests