ID: 40137
User updated by: kolypto at mail dot ru
Reported By: kolypto at mail dot ru
-Status: Bogus
+Status: Open
Bug Type: Variables related
Operating System: WinXP
PHP Version: 5.2.0
New Comment:
Found another thing, in manual:
int socket_select ( array &read, array &write, array &except, int
tv_sec [, int tv_usec] )
here's the amps before variables, that's exactly the same as spoken
above.
And what we see next, in manual?
$num_changed_sockets = socket_select($read, $write = NULL, $except =
NULL, 0);
so, the "bug" i'm complaining above is really strange...
Previous Comments:
------------------------------------------------------------------------
[2007-01-16 21:50:55] kolypto at mail dot ru
Okay, i'll note that from 5.0.4 php has silently changed its
behavior...
------------------------------------------------------------------------
[2007-01-16 08:27:48] [EMAIL PROTECTED]
Turn on error messages and see the error message you're missing:
"Strict Standards: Only variables should be passed by reference"
"$a='IN'" is not a variable, it's an expression and expressions cannot
be passed by reference.
No bug here.
------------------------------------------------------------------------
[2007-01-16 03:42:37] kolypto at mail dot ru
In php4 and php 5.0.4 it is:
In function:IN
MOD
In php > 5.0.4 it works like you're saying
that's the question =)
------------------------------------------------------------------------
[2007-01-16 03:31:25] judas dot iscariote at gmail dot com
sigh. lets see..
function modify(&$str1)
{
print "\n".'In function:'.$str1;
$str1='MOD';
}
// the variable $a is locally **defined** with value "IN"
modify($a='IN'); //this prints 'In function: IN' (as expected)
print "\n".$a; // $a is **already defined** as 'IN', hence it SHOULD
print 'IN' **not** MOD
wth are you talking about ?? works as expected.
------------------------------------------------------------------------
[2007-01-15 22:23:05] kolypto at mail dot ru
Recent research: in 5.0.4 this code works as expected:
------------------------------------------------------------------------
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/40137
--
Edit this bug report at http://bugs.php.net/?id=40137&edit=1