Bug #73126 [Opn->Csd]: Cannot pass parameter 1 by reference
| From: | ab@php.net | Date: | Thu, 22 Sep 2016 09:52:23 +0000 |
| Subject: | Bug #73126 [Opn->Csd]: Cannot pass parameter 1 by reference | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-204181@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
Updated by: ab@php.net
Reported by: bugzilla77 at gmail dot com
Summary: Cannot pass parameter 1 by reference
-Status: Open
+Status: Closed
Type: Bug
Package: COM related
Operating System: Win 10 Pro 64-bit
PHP Version: 7.1.0RC2
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=579c8669c8b8b5646c576aea5b6b5c894ce485ff
Log: Fixed bug #73126 Cannot pass parameter 1 by reference
Previous Comments:
------------------------------------------------------------------------
[2016-09-20 12:13:43] bugzilla77 at gmail dot com
This problem does not occur in PHP 7.1beta3.
Only 7.1RC2!
...and probably 7.1RC1.
------------------------------------------------------------------------
[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