php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14585 parse error
Submitted: 2001-12-18 13:07 UTC Modified: 2001-12-19 02:54 UTC
From: rihad at mail dot ru Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.1.0 OS: Windows 2000 SP2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: rihad at mail dot ru
New email:
PHP Version: OS:

 

 [2001-12-18 13:07 UTC] rihad at mail dot ru
<?php
$a = @&$b;
?>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-18 13:11 UTC] derick@php.net
What are you trying to reach with this?
 [2001-12-18 13:35 UTC] 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-19 01:48 UTC] rihad at mail dot 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-19 01:58 UTC] rihad at mail dot ru
Ooops, poor me, $a = &$b; does not give any warnings. Sorry.
 [2001-12-19 02:54 UTC] derick@php.net
Let's close it then
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Sep 16 22:01:27 2024 UTC