For Programmers: Free Programming Magazines  


Home > Archive > PHP PEAR Questions and Answers > October 2005 > XML_CSSML, XML_XPath









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author XML_CSSML, XML_XPath
Sebastian Bergmann

2005-09-19, 7:57 am

Forwarding the following from a fellow Gentoo developer:

The tests for XML_CSSML and XML_XPath appear to fail because they are
trying to re-assign $this, which php 5 at least doesn't appear to like.
Note that this is happening in the classes inside of the individual
packages and not in the example php files.

--
Sebastian Bergmann http://www.sebastian-bergmann.de/
GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69
Sebastian Bergmann

2005-10-09, 7:55 am

Sebastian Bergmann schrieb:
> The tests for XML_CSSML and XML_XPath appear to fail because they are
> trying to re-assign $this, which php 5 at least doesn't appear to like.
> Note that this is happening in the classes inside of the individual
> packages and not in the example php files.


Helgi Þormar Þorbjörnsson fixed XML_CSSML in CVS. Could someone please
test his changes and roll a new release? Thanks!

--
Sebastian Bergmann http://www.sebastian-bergmann.de/
GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69
Helgi Þormar

2005-10-09, 6:56 pm

On Sun, 09 Oct 2005 11:11:36 +0200, Sebastian Bergmann wrote:

> Sebastian Bergmann schrieb:
>
> Helgi Þormar Þorbjörnsson fixed XML_CSSML in CVS. Could someone please
> test his changes and roll a new release? Thanks!


I didn't tho fix the issue of wrong installation path, which is a
potential BC issue.

See: http://pear.php.net/bugs/bug.php?id=5574

QA needs to come to some conclusion what should be done.

- Helgi
Sebastian Bergmann

2005-10-12, 3:57 am

bertrand Gugger schrieb:
> * strict dependency on php4, needs to check the 4.4.0 branch too
> * dynamically check the requested extension is present
> * keep the $this assignment <sighs>
> In order QA can release.


Sounds like the only reasonable thing we can do now. (Apart from banning
such a nightmare of a package from PEAR.)

Thanks,
Sebastian

--
Sebastian Bergmann http://www.sebastian-bergmann.de/
GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69
Sebastian Bergmann

2005-10-16, 3:56 am

Arnaud Limbourg schrieb:
> For the record, both packages were released today.


Got the following message from my fellow Gentoo developer:

When testing PEAR-XML_XPath, I found that it appears to depend on the
PEAR_Error class provided by PEAR-PEAR. However, the current version
of PEAR-PEAR appears to have deprecated PEAR_Error in favor of
PEAR_ErrorStack.

Also, in trying to test that PEAR-XML_XPath actually works, the
example script XML_XPath_example.php fails with the following;

Fatal error: Call to undefined function domxml_open_mem() in
/usr/share/php/XML/XPath.php on line 142

It looks like XML_XPath needs a "PHP 4 only" dependency, too, just like
XML_CSSML.

--
Sebastian Bergmann http://www.sebastian-bergmann.de/
GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69
Helgi Þormar

2005-10-16, 3:56 am

On Sun, 16 Oct 2005 08:08:11 +0200, Sebastian Bergmann wrote:

> Arnaud Limbourg schrieb:
>
> Got the following message from my fellow Gentoo developer:
>
> When testing PEAR-XML_XPath, I found that it appears to depend on the
> PEAR_Error class provided by PEAR-PEAR. However, the current version
> of PEAR-PEAR appears to have deprecated PEAR_Error in favor of
> PEAR_ErrorStack.


This is false, it has not been deprecated and probably never will be,
ErrorStack is simply a more sophisticated alternative to PEAR_Error.

> Also, in trying to test that PEAR-XML_XPath actually works, the
> example script XML_XPath_example.php fails with the following;
>
> Fatal error: Call to undefined function domxml_open_mem() in
> /usr/share/php/XML/XPath.php on line 142
>
> It looks like XML_XPath needs a "PHP 4 only" dependency, too, just like
> XML_CSSML.


Also "false", if one takes a look at www.php.net/domxml then you can see
it's a PECL ext that is said to "work" on PHP 5, so placing a domxml
dep is the way to go, then again, how well does it "work" under PHP 5 ?
Well maybe PHP 4 dep is the way to go if one wants no problem from this
thing, guess someone should write a decent PHP 5 support to XPath.

- Helgi
Sebastian Bergmann

2005-10-16, 3:56 am

Helgi Þormar schrieb:
> guess someone should write a decent PHP 5 support to XPath.


PHP 5 has out-of-the-box support for XPath in both DOM and SimpleXML.

--
Sebastian Bergmann http://www.sebastian-bergmann.de/
GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69
Helgi Þormar

2005-10-16, 6:55 pm

On Sun, 16 Oct 2005 08:46:08 +0200, Sebastian Bergmann wrote:

> Helgi Þormar schrieb:
>
> PHP 5 has out-of-the-box support for XPath in both DOM and SimpleXML.


ohh right, forgot about that, so yeah PHP 4 dep.

- Helgi
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com