[PHP-DOC] Bug #17435 Updated: unset() of the globalized variable

2002-05-27 Thread ivun

 ID:   17435
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Bogus
 Bug Type: Documentation problem
 Operating System: Linux/Windows
 PHP Version:  4.2.0
 New Comment:

Sure.

My script works with sockets and there is a function that closes the
socket and destroys all the variables connected to it. $output and
$input are arrays of sockets. Here is the code:

function socket_kill_my_socket($i) {
global $fset, $output, $input;
$fnd = array_search($i, $fset);
unset($fset[$fnd]);
unset($output[$i]);
unset($input[$i]);
socket_shutdown($i); //???
socket_close($i);
echo Closed $iBR;
}


Previous Comments:


[2002-05-26 15:04:26] [EMAIL PROTECTED]

Can you please provide us with a code where we
can reproduce what you've said?



[2002-05-26 13:34:55] [EMAIL PROTECTED]

Are you completely sure? But why are the globalized variables destroyed
in my scripts?

Ps. Another bug is handling ' and \ in Bug Report system :)



[2002-05-26 13:23:20] [EMAIL PROTECTED]

Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit http://www.php.net/support.php

Thank you for your interest in PHP.

unset()\'s documentation is perfectly right on this point.



[2002-05-26 13:21:42] [EMAIL PROTECTED]

The article about unset() says: If a globalized variable is unset()
inside of a function, only the local variable is destroyed.  The
variable in the calling environment will retain the same value as
before unset() was called. It is != true!




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




[PHP-DOC] Bug #17435 Updated: unset() of the globalized variable

2002-05-26 Thread goba

 ID:   17435
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Bogus
 Bug Type: Documentation problem
 Operating System: Linux/Windows
 PHP Version:  4.2.0
 New Comment:

Can you please provide us with a code where we
can reproduce what you've said?


Previous Comments:


[2002-05-26 13:34:55] [EMAIL PROTECTED]

Are you completely sure? But why are the globalized variables destroyed
in my scripts?

Ps. Another bug is handling ' and \ in Bug Report system :)



[2002-05-26 13:23:20] [EMAIL PROTECTED]

Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit http://www.php.net/support.php

Thank you for your interest in PHP.

unset()\'s documentation is perfectly right on this point.



[2002-05-26 13:21:42] [EMAIL PROTECTED]

The article about unset() says: If a globalized variable is unset()
inside of a function, only the local variable is destroyed.  The
variable in the calling environment will retain the same value as
before unset() was called. It is != true!




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