Bug #73126 [NEW]: Cannot pass parameter 1 by reference
| From: | bugzilla77 at gmail dot com | Date: | Tue, 20 Sep 2016 12:10:12 +0000 |
| Subject: | Bug #73126 [NEW]: Cannot pass parameter 1 by reference | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-204148@lists.php.net to get a copy of this message | ||
From: bugzilla77 at gmail dot com
Operating system: Win 10 Pro 64-bit
PHP version: 7.1.0RC2
Package: *General Issues
Bug Type: Bug
Bug description:Cannot pass parameter 1 by reference
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 bug report at https://bugs.php.net/bug.php?id=73126&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73126&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73126&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73126&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=73126&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=73126&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=73126&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=73126&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=73126&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=73126&r=support
Expected behavior: https://bugs.php.net/fix.php?id=73126&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=73126&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=73126&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=73126&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73126&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=73126&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=73126&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=73126&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=73126&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=73126&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=73126&r=mysqlcfg