ID: 9082
Updated by: mathieu
Reported By: [EMAIL PROTECTED]
Old-Status: Closed
Status: Feedback
Bug Type: Sockets related
Assigned To:
Comments:
[Status change]
and:
heh dunno wether it still does what it oughta now though :PPPP
can't test in your environment
Previous Comments:
---------------------------------------------------------------------------
[2001-02-02 15:57:06] [EMAIL PROTECTED]
Fixed in CVS ... thanks mathieu.
---------------------------------------------------------------------------
[2001-02-02 15:26:38] [EMAIL PROTECTED]
[Status change]
and:
heh dunno wether it still does what it oughta now though :PPPP
can't test in your environment
---------------------------------------------------------------------------
[2001-02-02 14:46:52] [EMAIL PROTECTED]
[Status change]
and:
heh dunno wether it still does what it oughta now though :PPPP
can't test in your environment
---------------------------------------------------------------------------
[2001-02-02 14:45:19] [EMAIL PROTECTED]
Colin
For now I'm not in the CVS thingy to write to the PHP tree, but:
What fixed it for me is putting:
if (ZEND_NUM_ARGS() == 2)
MAKE_STD_ZVAL(*port);
after the ifstatement containing the zend_get_parameters().
-- CaPS
---------------------------------------------------------------------------
[2001-02-02 14:07:55] [EMAIL PROTECTED]
The proto says:
getpeername(int fd, string &addr[, int &port])
But if I only pass it the $addr, my script segfaults.
i.e., this works:
<? getpeername($socket, &$ip, &$port); ?>
and this doesn't:
<? getpeername($socket, &$ip ); ?>
- Colin
---------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view the rest of the
comments, please view the bug report online.
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9082&edit=2
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]