Bug #73126 [Com]: Cannot pass parameter 1 by reference
| From: | bugzilla77 at gmail dot com | Date: | Tue, 20 Sep 2016 12:13:43 +0000 |
| Subject: | Bug #73126 [Com]: Cannot pass parameter 1 by reference | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-204150@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73126&edit=1
ID: 73126
Comment by: bugzilla77 at gmail dot com
Reported by: bugzilla77 at gmail dot com
Summary: Cannot pass parameter 1 by reference
Status: Open
Type: Bug
Package: *General Issues
Operating System: Win 10 Pro 64-bit
PHP Version: 7.1.0RC2
Block user comment: N
Private report: N
New Comment:
This problem does not occur in PHP 7.1beta3.
Only 7.1RC2!
...and probably 7.1RC1.
Previous Comments:
------------------------------------------------------------------------
[2016-09-20 12:10:12] bugzilla77 at gmail dot com
Description:
------------
Script1 is the same like Stript2
...but Stript2 prints:
Fatal error: Uncaught Error: Cannot pass parameter 1 by reference in C:\htdocs\test.pl\2.php:3 Stack
trace: #0 {main} thrown in C:\htdocs\test.pl\2.php on line 3
Test script:
---------------
<?php // stript1
$d=(new
COM('com.sun.star.ServiceManager',null,CP_UTF8))->CreateInstance('com.sun.star.frame.Desktop')->LoadComponentFromURL('private:factory/swriter','_blank',0,[]);
?>
<?php // stript2
$o=new COM('com.sun.star.ServiceManager',null,CP_UTF8);
$d=$o->CreateInstance('com.sun.star.frame.Desktop')->LoadComponentFromURL('private:factory/swriter','_blank',0,[]);
?>
Expected result:
----------------
No Fatal error
Actual result:
--------------
Fatal error: Uncaught Error: Cannot pass parameter 1 by reference in C:\htdocs\test.pl\2.php:3 Stack
trace: #0 {main} thrown in C:\htdocs\test.pl\2.php on line 3
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73126&edit=1