#21366 [NoF->Opn]: socket_getpeername does not function with AF_UNIX sockets

2003-03-09 Thread piotr at t-p-l dot com
 ID:   21366
 User updated by:  piotr at t-p-l dot com
 Reported By:  piotr at t-p-l dot com
-Status:   No Feedback
+Status:   Open
 Bug Type: Sockets related
 Operating System: Linux
 PHP Version:  4.3.0
 New Comment:

I cant try those snapshots at the moment .. but rather than that .. I
just have a simple question .. what do you get when you run that code
and then connect to that socket? what is the expected result of the
getpeername command when dealing with a unix socket?


Previous Comments:


[2003-03-09 18:47:08] [EMAIL PROTECTED]

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.





[2003-03-04 20:39:34] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

can't reproduce this..




[2003-02-13 20:15:47] piotr at t-p-l dot com

Here it goes .. 


the result (after connecting to the socket .. I used the utility "sock"
to quickly connect to the socket) was the following:

Connection from Address: Üã0
 Port:

aka .. gibberish .. 
here is the result of php -v for your reference:
PHP 4.3.0 (cli) (built: Jan 13 2003 01:39:49)
Copyright (c) 1997-2002 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies



[2003-02-13 19:42:42] [EMAIL PROTECTED]

Could your please provide a short but _complete_, self-contained
script? (yes, we're lazy :)


----

[2003-01-02 19:48:49] piotr at t-p-l dot com

just to remove the confusion .. that is a cleaned up sniped from a
generic socket class I'm working on thats why the refernces to the
socket's Domain (as oposed to being hardcoded)

the socket ($sock) was created with its domain set to the value of
$Domain



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/21366

-- 
Edit this bug report at http://bugs.php.net/?id=21366&edit=1



#29080 [Com]: Segmentation Fault when using Interface

2004-07-15 Thread piotr at t-p-l dot com
 ID:   29080
 Comment by:   piotr at t-p-l dot com
 Reported By:  jason at ionzoft dot com
 Status:   Feedback
 Bug Type: Reproducible crash
 Operating System: Redhat ES 3.0 (Intel)
 PHP Version:  5.0.0RC3
 New Comment:

running the same code seg faults aswell
I narrowed it down to Optimizer here is the proof:

-- WITHOUT OPTIMIZER --

# php -v
PHP 5.0.0 (cli) (built: Jul 15 2004 10:19:20)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.0, Copyright (c) 1998-2004 Zend Technologies
with Zend Extension Manager v1.0.3, Copyright (c) 2003-2004, by
Zend Technologies
with Zend Debugger v3.5.0, Copyright (c) 1999-2004, by Zend
Technologies

# php test2.php
Hello

-- WITH OPTIMIZER --

# php -v
PHP 5.0.0 (cli) (built: Jul 15 2004 10:19:20)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.0, Copyright (c) 1998-2004 Zend Technologies
with Zend Extension Manager v1.0.3, Copyright (c) 2003-2004, by
Zend Technologies
with Zend Optimizer v2.5.3, Copyright (c) 1998-2004, by Zend
Technologies
with Zend Debugger v3.5.0, Copyright (c) 1999-2004, by Zend
Technologies

# php test2.php
Segmentation fault

-- WITH OPTIMIZER (but no DEBUGGER) --

# php -v
PHP 5.0.0 (cli) (built: Jul 15 2004 10:19:20)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.0, Copyright (c) 1998-2004 Zend Technologies
with Zend Extension Manager v1.0.3, Copyright (c) 2003-2004, by
Zend Technologies
with Zend Optimizer v2.5.3, Copyright (c) 1998-2004, by Zend
Technologies

# php test2.php
Segmentation fault


Previous Comments:


[2004-07-10 14:37:14] [EMAIL PROTECTED]

Could you also try to run it with Debugger and Optimizer alone to get
them isolated?



[2004-07-10 06:51:11] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip



[2004-07-09 23:14:46] jason at ionzoft dot com

Description:

Hello,

I discovered this problem tonight while working on a new PHP 5 class
that uses an interface.  The code example came from
http://www.zend.com/php5/articles/engine2-php5-changes.php#Heading5


getMessage();
?>


--


On this server, I get a Segmentation Fault:

[EMAIL PROTECTED] dev]$ php -v
PHP 5.0.0RC3 (cli) (built: Jun 24 2004 17:35:13)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.0RC3, Copyright (c) 1998-2004 Zend Technologies
with Zend Extension Manager v1.0.2, Copyright (c) 2003-2004, by
Zend Technologies
with Zend Optimizer v2.5.2, Copyright (c) 1998-2004, by Zend
Technologies
with Zend Debugger v3.5.0, Copyright (c) 1999-2004, by Zend
Technologies


[EMAIL PROTECTED] dev]$ php -f Interface.php
Segmentation fault

--

On this server, It works fine:

[EMAIL PROTECTED] Jason]$ php -v
PHP 5.0.0RC3 (cli) (built: Jun 14 2004 14:04:10)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.0RC3, Copyright (c) 1998-2004 Zend Technologies


[EMAIL PROTECTED] Jason]$ php -f Interface.php
Hello

--

Could it be a problem with the Debugger?

Thanks,
Jason Garber


-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reproduce code:
---
getMessage();
?>


Expected result:

Should print "Hello\n"

Actual result:
--
"Segmentation Fault"





-- 
Edit this bug report at http://bugs.php.net/?id=29080&edit=1