Fwd: SplDoublyLinkedList

From: Date: Sun, 08 Jan 2012 15:32:30 +0000
Subject: Fwd: SplDoublyLinkedList
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-57271@lists.php.net to get a copy of this message
Hey Internals, I'm trying to add a new method to SplDoublyLinkedList named "clear" I've successfully compiled please see the output: $dll = new \SplDoublyLinkedList(); var_dump(get_class_methods($dll)); array(23) {  [0]=>  string(5) "clear" So my clear method is there, but as soon as i try to call it in the code by doing: $dll->clear(); I get: Fatal error: Call to undefined function  new \SplDoublyLinkedList() in - on line 2 Without the call to clear, the class works as normal. Here are the 2 entries i've made: SPL_ME(SplDoublyLinkedList, clear,           arginfo_dllist_void,      ZEND_ACC_PUBLIC) SPL_METHOD(SplDoublyLinkedList, clear) {    RETURN_TRUE; } Can someone help me out? Thanks, Paul Dragoonis.

« previous php.internals (#57271) next »