Bertrand Mansion | 14 Jan 2012 10:13

[PEPr] +1 for Web Services::Mailman

Bertrand Mansion (http://pear.php.net/user/mansion) has voted +1 on the proposal for Web Services::Mailman.

Proposal information:
http://pear.php.net/pepr/pepr-proposal-show.php?id=672
Vote information:
http://pear.php.net/pepr/pepr-vote-show.php?id=672&handle=mansion

--

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Christian Weiske | 14 Jan 2012 13:35
Picon
Gravatar

[PEPr] +1 for Web Services::Mailman

Christian Weiske (http://pear.php.net/user/cweiske) has voted +1 on the proposal for Web Services::Mailman.

Proposal information:
http://pear.php.net/pepr/pepr-proposal-show.php?id=672
Vote information:
http://pear.php.net/pepr/pepr-vote-show.php?id=672&handle=cweiske

This vote is conditional. The condition is:

- Please run phpcs on your code

- I'd prefer if you used simplexml+xpath instead of regex (and dom::loadhtml if necessary)

- why don't you throw exceptions? currently I have to check the return value of every single method call
manually instead of putting a try-catch around all of it. __construct also does swallow errors that occur
in the called methods since it cannot return them.

- I'd remove the default values of your class variables. Put them in the docblock
("'http://www.example.co.uk/mailman/admin';") or in your validation ("passwords-cannot-have-spaces").

--

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Laurent Laville | 14 Jan 2012 15:28

PHP_CompatInfo 1.x and 2.x

Hello,

I've decided to change some info on official PEAR package home page [1], 
because I consider that the branch 1.x is no more maintained.

Except, by effort of Daniel Convissor recently.

There is now the message

"This package is not maintained anymore and has been superseded. Package 
has moved to channel bartlett.laurent-laville.org, package PHP_CompatInfo."

I've also changed external package homepage from [2] to [3]

Link [2] will remain active on my website for users who still want to 
use old and unmaitain version, and want to find examples and documentation.

Behind link [3] you could find another link to current v2.1 documentation.

PHP_CompatInfo 2.2.0 (and its companion PHP_Reflect 1.2.0) are planned 
with PHP 5.4.0 stable release.

On my way to improve again PHPCI, there is now a new extension supported 
(LDAP) [4] and a new package snapshot is available [5]

If you want to test it, don't forget to download/install also the latest 
snapshot of PHP_Reflecte 1.2.0 [6]

Enjoy !
Laurent
(Continue reading)

Laurent Laville | 14 Jan 2012 17:05

PHP_Reflect 1.2.0 (PHP_CompatInfo 2.x companion)

Hello again,

Just few words to tell you that i've just added [1] support for TRAIT 
(PHP 5.4.0 feature) in the latest snapshot of PHP_Reflect 1.2.0 [2]

Documentation will be update later.
I'll also add trait report for PHP_CompatInfo CLI later too

Enjoy
Laurent

[1] https://github.com/llaville/php-reflect/commits/master
[2] 
http://bartlett.laurent-laville.org/get/PHP_Reflect-1.2.0snapshot20120114.tgz

--

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Keshav Nair | 16 Jan 2012 05:47

Request a PEAR account


Hello,
        I would like to request a PEAR account as i want to maintain the HTML_BBCodeParser extension. I have been
working and playing around with php and pear for more than a year and now i am currently working on a forum
script so i intended to use HTML_BBCodeParser extension as bbcodes but it is not maintained i would like to
improve and maintain that extension as i want to introduce new features like fetch data from other
websites with simple tags or make a div tag that will show change the background color according to the user
and if there are php html or any language codes then it will highlight the variable, function and class
color etc,. separately what ever the color a developer chooses for a particular code. I am a student and i
love codes weather its php pear java or anything its something that i love in the past year i had bought and
maintained 5 forums did a lot of hardcore seo made a few scripts with functionality like imap, oauth,
openssl.. Please i would like to user 
HTML_BBCodeParser extension and if later on it gets discontinued then i will have to recode a lot of things
so i would like to take the responsibility to maintaining it.

Thank You
Keshav Nair 		 	   		  
Christian Weiske | 16 Jan 2012 13:17
Picon
Favicon
Gravatar

Re: Stability of PEAR - call to arms

Hello Daniel,

> 116 packages with passing tests.
> 135 with assorted failures.
>
>    2. An unstable PHP4 package has E_STRICT/similar failures. Upgrade
> to PHP 5.0.0+.

Text_LanguageDetect has been converted to PHP5 now, a new feature
implemented and version 0.3.0 is released. Make that one less failing.

--

-- 
Regards/Mit freundlichen Grüßen
Christian Weiske

-=≡ Geeking around in the name of science since 1982 ≡=-
Laurent Laville | 17 Jan 2012 15:45

Last snapshots for PHP_Reflect 1.2.0 and PHP_CompatInfo 2.2.0

Hello,

I've finished to implement and fix all features related to PHP 5.3.9 and 
PHP 5.4.0

So, consider these snapshots [1] and [2] as the last one before stable 
releases.

Feel free to download / install / tests / report to me any issues you 
could find. This will improve quality for stable releases

Here are summary of content :

*PHP_Reflect*

Additions and changes:
- add TRAIT support (PHP 5.4.0 feature)
- refactoring of getArguments() method introduced in previous version 1.1.0

Bug fixes:
- none

*PHP_CompatInfo*

Additions and changes:
- fix references for functions with parameters that have different versions
- add detection for class member access on instantiation (e.g. (new 
Foo)->bar())
- improves detection for function with version changed depending of 
signature (arguments)
(Continue reading)

HM 2K | 18 Jan 2012 14:36
Picon

Re: [PEPr] +1 for Web Services::Mailman

Hi Christian,

Thanks for the feedback.

You can see here that I've addressed your concerns:

https://github.com/hm2k/Services_Mailman/commits/master

However, I am still considering using simplexml+xpath over regex. I've
tried working with domdocument before to parse html and it's horrible. If
it's easy enough to work with and maintainable I will switch to using
simplexml+xpath instead.

On Sat, Jan 14, 2012 at 12:35 PM, Christian Weiske <cweiske <at> php.net> wrote:

> Christian Weiske (http://pear.php.net/user/cweiske) has voted +1 on the
> proposal for Web Services::Mailman.
>
> Proposal information:
> http://pear.php.net/pepr/pepr-proposal-show.php?id=672
> Vote information:
> http://pear.php.net/pepr/pepr-vote-show.php?id=672&handle=cweiske
>
> This vote is conditional. The condition is:
>
> - Please run phpcs on your code
> - I'd prefer if you used simplexml+xpath instead of regex (and
> dom::loadhtml if necessary)
> - why don't you throw exceptions? currently I have to check the return
> value of every single method call manually instead of putting a try-catch
(Continue reading)

Васил Рангелов | 18 Jan 2012 16:10
Picon
Gravatar

RE: Re: [PEPr] +1 for Web Services::Mailman

What part(s?) are you finding horrible? Whether you use SimpleXML or DOM,
you can use XPath once you load the document, and thus accurately and
unambiguously target the elements you need, which is in fact why this is a
preferred approach.

With DOM, the code would look something like the following (in this case for
the unsubscribe functionality) :
<?php
$dom = new DOMDocument;
$dom->loadHTMLFile($url);
$xpath = new DOMXPath($dom);
if ($xpath->query('//h5[.="Successfully Unsubscribed:"]')->length === 1) {
//Successfully unsubscribed!
}
?>
And if your problem is that these are too many statements, you can squeeze
them, like:
<?php
$dom = new DOMDocument;
$xpath = new DOMXPath($dom->loadHTMLFile($url));
if ($xpath->query('//h5[.="Successfully Unsubscribed:"]')->length === 1) {
//Successfully unsubscribed!
}
?>
Or if you sacrifice compatibility with versions prior to PHP 5.4:
<?php
if ((new DOMXPath((new
DOMDocument)->loadHTMLFile($url))->query('//h5[.="Successfully
Unsubscribed:"]')->length === 1) {
//Successfully unsubscribed!
(Continue reading)

Christian Weiske | 18 Jan 2012 20:18
Picon
Favicon
Gravatar

Re: Re: [PEPr] +1 for Web Services::Mailman

Hello HM,

> You can see here that I've addressed your concerns:
> 
> https://github.com/hm2k/Services_Mailman/commits/master

- Use your own exception class that extends Exception (or PEAR_Exception
  when that is standalone available with pear 1.10) so people can catch
  your exceptions.
- Use exception codes so they are distinguishable
- Use SPL exceptions when appropriate, e.g. InvalidArgumentException
- Add  <at> throws to the docblocks

--

-- 
Regards/Mit freundlichen Grüßen
Christian Weiske

-=≡ Geeking around in the name of science since 1982 ≡=-

Gmane