Re: Bug in PHP 4.2.0-dev
| From: | Markus Fischer | Date: | Tue, 13 Nov 2001 17:14:34 +0000 |
| Subject: | Re: Bug in PHP 4.2.0-dev | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-70368@lists.php.net to get a copy of this message | ||
Sterling,
I've looked at this last time when Thomas Cox reported a similar
problem. I've tracked it down to the changes you last did when
converting to the new zend_parse_parameters() api (it was the
change from zval_dtor() to zval_ptr_dtor() ).
- Markus
On Tue, Nov 13, 2001 at 05:48:25PM +0100, Martin Jansen wrote :
> The following script produces a pretty weird output:
>
> <?php
> class Net_Portscan
> {
> function checkPort($host, $port)
> {
> $socket = @fsockopen($host,
> $port,
> $errorNumber,
> $errorString,
> 30);
>
> if (!$socket) {
> return 0;
> }
>
> return 1;
> }
> }
>
> echo Net_Portscan::checkPort("127.0.0.1", 80);
>
> ?>
>
> The result of the checkPort() call should be either 0 or 1, right?
> When executing this script on PHP 4.2.0-dev (latest snapshot),
> Apache 1.3.22 and Linux 2.4.0, the output is a number with 9
> digits (e.g. 135197452), that randomly changes with each request.
>
> With PHP 4.0.6, Apache 1.3.20 and Debian 2.2r3 it works without
> a problem.
>
> Any hints?
>
> - Martin
>
> --
> Martin Jansen, <mail@martin-jansen.de>
> http://www.martin-jansen.de/
>
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
Markus Fischer, http://guru.josefine.at/~mfischer/
EMail: mfischer@guru.josefine.at
PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0
-All your scripts are belong to Zend-