#40137 [Opn->Csd]: in-function-call variable-define bug

From: Date: Tue, 13 Feb 2007 11:50:02 +0000
Subject: #40137 [Opn->Csd]: in-function-call variable-define bug
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969375454@lists.php.net to get a copy of this message
ID: 40137 Updated by: colder@php.net Reported By: kolypto at mail dot ru -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: WinXP PHP Version: 5.2.0 -Assigned To: +Assigned To: colder New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Also fixed other occurrences of it: socket_select stream_select readline_callback_handler_install Previous Comments: ------------------------------------------------------------------------ [2007-02-12 18:55:08] tony2001@php.net Then it should be fixed in the docs. ------------------------------------------------------------------------ [2007-02-04 15:21:18] kolypto at mail dot ru 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... ------------------------------------------------------------------------ [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] tony2001@php.net 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 =) ------------------------------------------------------------------------ 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

« previous php.doc (#969375454) next »