Bug #69880 [Opn->Nab]: strict error
| From: | cmb@php.net | Date: | Thu, 18 Jun 2015 23:28:06 +0000 |
| Subject: | Bug #69880 [Opn->Nab]: strict error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-193674@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=69880&edit=1
ID: 69880
Updated by: cmb@php.net
Reported by: roberto at spadim dot com dot br
Summary: strict error
-Status: Open
+Status: Not a bug
Type: Bug
Package: *General Issues
Operating System: linux
PHP Version: 5.6.10
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Sorry, but 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 as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2015-06-18 22:54:59] roberto at spadim dot com dot br
Description:
------------
Hi guys, i received a strict error, but i`m confused what function received...
Why I'm receiving a variables should be passed by reference when i use t($a=1)? the t()
function received 1, or the variable $a with value = 1?
Test script:
---------------
<?php
error_reporting(E_ALL);
function t(&$a){}
t($a=1); /// should not receive error!! t() received ($a=1)? or t received (1) without variable $a
reference?
?>
[beto@conquista2 ~]# php t.php
PHP Strict Standards: Only variables should be passed by reference in /home/beto/t.php on line 5
Strict Standards: Only variables should be passed by reference in /home/beto/t.php on line 5
Expected result:
----------------
no errors
Actual result:
--------------
PHP Strict Standards: Only variables should be passed by reference in /home/beto/t.php on line 5
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69880&edit=1