473,394 Members | 1,750 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

PHP runkit and DOM insertAfter

Any idea why PHP runkit does not allow you to extend a non-user-defined
class?

In PHP runkit_methods.c it seems to do a check and calls
php_error_docref with E_WARNING ("class %s is not a user-defined
class") and returns FAILURE for the runkit function.

I'm trying to extend DOMNode/DOMElement and I cant just extend them
normally because DOMDocument wont return this new extended class in its
various functions and that's going to be a pain to deal with. Actually
thats another point - this is probably a DOM standard issue but why is
there no DOMNode::insertAfter() method?

Also how come DOMNode::insertBefore() needs a refnode instead of just
inserting before itself - that would seem insanely more logical to me
but then I am not the W3C and I don't have their infinite, dare I say
prophetic wisdom. If I have shown my ignorance to the DOM standard
please have mercy on me for I am nothing more than a minion and so
short-sighted that I am sure to miss their reasoning for making us jump
through hoops with $node->parentNode->insertBefore($new, $node); rather
than $node->insertBefore($new);

Oct 28 '06 #1
0 1568

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: chris yoker | last post by:
hiya, I succesfully return a "nodeList" thru the "xmlDoc.SelectNodes" method. This nodeList is taken from a repetitive, uniform xml doc. I can successfully append a child node at the correct...
6
by: campwes | last post by:
Hey, all. I'm trying to develop a C# app that creates Word 2003 mail merge documents with an Oracle 9i database as the datasource. I used the following as an example of how I can start out: ...
2
by: Sonu Kapoor | last post by:
Hey Guys, I am trying to insert a xml elmement right after specific MainCategory element in the following xml file: <?xml version="1.0" encoding="utf-8"?> <CategoryList> <Category>...
4
by: The Kiddie | last post by:
Hi, I am having major headaches with XmlNode.InsertAfter. This is the format of my XML document <?xml version="1.0" encoding="utf-8"?> <Team name="Team"> <Players> <Player> <name> GK</name>...
2
by: Kael | last post by:
Hi, I’ve made a class to help me accomplish some things faster but I’m having problems inserting nodes. I’ve tried many different ways, but with no success. This is a very stripped down...
2
by: Nemon | last post by:
I need to expose some scripting functionality to novice users in a project of mine. What i wonderd was if anyone knew a way of executing secure PHP from within a PHP script or an alternative...
4
by: etuncer | last post by:
Hello All, I have Access 2003, and am trying to build a database for my small company. I want to be able to create a word document based on the data entered through a form. the real question is...
1
by: wyzxwyzx | last post by:
#if !defined(AFX_WORDDRIVE_H__2D30405E_C217_4FD6_80E3_A018295F99E7__INCLUDED_) #define AFX_WORDDRIVE_H__2D30405E_C217_4FD6_80E3_A018295F99E7__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif...
5
matheussousuke
by: matheussousuke | last post by:
Hello, I'm using tiny MCE plugin on my oscommerce and it is inserting my website URL when I use insert image function in the emails. The goal is: Make it send the email with the URL...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.