Bug #14585 Updated: parse error

From: Date: Wed, 19 Dec 2001 07:54:27 +0000
Subject: Bug #14585 Updated: parse error
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-74344@lists.php.net to get a copy of this message
ID: 14585 Updated by: derick Reported By: rihad@mail.ru Old Status: Open Status: Closed Bug Type: Scripting Engine problem Operating System: Windows 2000 SP2 PHP Version: 4.1.0 New Comment: Let's close it then Previous Comments: ------------------------------------------------------------------------ [2001-12-19 01:58:21] rihad@mail.ru Ooops, poor me, $a = &$b; does not give any warnings. Sorry. ------------------------------------------------------------------------ [2001-12-19 01:48:13] rihad@mail.ru Thanks for the quick reply! > What are you trying to reach with this? Err... suppress the warning that would otherwise arise ($a = &$b; when error_reporting=E_ALL) > It would be even more nice if it gives a nice E_NOTICE > message too (@ can't be used on > reference assignments or something similar). I thought @ was there to shut up E_NOTICE :D ------------------------------------------------------------------------ [2001-12-18 13:35:51] sander@php.net IMO, it should silently ignore any @. Simply saying this is a parse error is a bit rude, IMO. It would be even more nice if it gives a nice E_NOTICE message too (@ can't be used on reference assignments or something similar). ------------------------------------------------------------------------ [2001-12-18 13:11:42] derick@php.net What are you trying to reach with this? ------------------------------------------------------------------------ [2001-12-18 13:07:20] rihad@mail.ru <?php $a = @&$b; ?> ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=14585&edit=1

« previous php.dev (#74344) next »