This is my first post here, so forgive me if I'm not doing this right.
It seems like php objects need a magic function __dump or __debug or something
similiar to handle these kinds of situations. I can see why this might be
construed as hackish / lame, but by that token, var_dump itself is. It see
Dmitry commited the updated instanceof to HEAD. I suggest to merge it into
PHP_5_1 as many want it and it's an extremely low risk patch.
If people object, we can put it into 5.1.1.
So you see, I am not as stubborn as some assumed :)
Andi
At 06:13 PM 8/11/2005 +0200, Michael Wallner wrote:
Hi
john wrote:
> Long time reader, first time poster.
>
> Rasmus, I noticed your var_dump says $x->node->title is of string(6) ...
> though I count only 5. Just wondering, a simple typo or something more
> involved?
That was just me munging the output a bit. It gets the right length.
-Rasmus
--
There isn't a single method in DOM for this - have to write code to do
it. get_properties was not implemented in DOM due to too many properties
and many properties recursive (DOM both ascends and descends a tree).
Any debugging would be useless trying to sort through all the crap. I,
like Adam,
On Fri, 19 Aug 2005, Sterling Hughes wrote:
> I agree. var_dump() should accurately expose the structure of the
> simplexml object, if people want to see *everything* they should dump
> it explicitly (there is a method in the DOM api to do this?)
You mean other than reserializing the data back a
I agree. var_dump() should accurately expose the structure of the
simplexml object, if people want to see *everything* they should dump
it explicitly (there is a method in the DOM api to do this?)
-Sterling
On 8/19/05, Rob Richards <[EMAIL PROTECTED]> wrote:
> Rasmus Lerdorf wrote:
>
> >Yeah, I
Rolland,
The implementation of this is problematic for two reasons:
1) You are assuming well-formed UTF-16 here. It would be better to use
U16_PREV() macro to obtain a codepoint and then put it in proper place
with zend_codepoint_to_uchar().
2) Combining sequences are not respected. We can
Long time reader, first time poster.
Rasmus, I noticed your var_dump says $x->node->title is of string(6) ...
though I count only 5. Just wondering, a simple typo or something more
involved?
Regards,
John
Rasmus Lerdorf wrote:
Sterling Hughes wrote:
Hm - that shouldn't be.
I think the
Rasmus Lerdorf wrote:
Yeah, I agree actually. My real beef is that simplexml and var_dump()
don't place nicely with each other. var_dump() ends up lumping the
namespaced elements in with the non-namespaced elements of the same
name, but when you iterate through things manually they are not lum
On Fri, 19 Aug 2005, Rasmus Lerdorf wrote:
> Yeah, I agree actually. My real beef is that simplexml and var_dump()
> don't place nicely with each other. var_dump() ends up lumping the
> namespaced elements in with the non-namespaced elements of the same
> name, but when you iterate through thing
Adam Maccabee Trachtenberg wrote:
> On Thu, 18 Aug 2005, Rasmus Lerdorf wrote:
>
>
>>But how does this really help? I don't see how it is possible to
>>distinguish the namespaced title vs. the non-namespaced ones. My
>>suggestion here would be that for namespaced nodes the namespace alias
>>(or
On Thu, 18 Aug 2005, Rasmus Lerdorf wrote:
> But how does this really help? I don't see how it is possible to
> distinguish the namespaced title vs. the non-namespaced ones. My
> suggestion here would be that for namespaced nodes the namespace alias
> (or perhaps the actual namespace?) becomes t
12 matches
Mail list logo