Re: Net_Ping::Ping documentation bugs
| From: | Martin Jansen | Date: | Sat, 02 Nov 2002 16:49:31 +0000 |
| Subject: | Re: Net_Ping::Ping documentation bugs | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-10448@lists.php.net to get a copy of this message | ||
On Fri Nov 01, 2002 at 06:5218PM +0100, Howard The Duck wrote:
> I recently installed and used the Net::Ping module. Here are some
> small errors i found in the documentation (at least at
> http://pear.php.net/manual/en/packages.networking.net_ping.php)
>
> I think the name Net_Ping::ping is incorrect because Ping is located in
> Net - so i think it should be changed to Net::Ping ? Not a bug just a
> thought...
Nope, it's correct. That's the way PEAR works :-).
> In the example code are 2 bugs - a bracket is missing and the require
> directive is incorrect:
> require_once "Net_Ping/Ping.php";
> should be
> require_once "Net/Ping.php";
>
> print_r($ping->ping("127.0.0.1");
> should be
> print_r($ping->ping("127.0.0.1"));
Thanks, I've fixed both issues. The changes should appear on the
website within the next day.
--
- Martin Martin Jansen
http://martinjansen.com/