|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-02-14 11:48 UTC] tetikr at spytech dot cz
Description: ------------ I'm executing this line of code: $o is a custom COM object $s = $o->Fields['ICON']->Images[0]->GetResizedUrl(55,55,0); It works fine in PHP 5.2.0. After installing 5.2.1 it tells me "Cannot pass parameter 1 by reference". Note that no used COM methods/properties use byref parameters. --------------- I can make it work after any of these work-arounds: 1) $x = o->Fields['ICON']->Images[0]; $s = $x->GetResizedUrl(55,55,0); 2) $n = 0; $s = $o->Fields['ICON']->Images[$n]->GetResizedUrl(55,55,0); 3) $n=55; $n2=0; $s = $o->Fields['ICON']->Images[0]->GetResizedUrl($n,$n,$n2); Reproduce code: --------------- A custom COM object is involved -> reproduce code is useless PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 05:00:01 2025 UTC |
Hi Tony, I fixed a very similar problem to this in 5.2 and HEAD under defect 34564 on 2nd Feb 2007. See http://bugs.php.net/bug.php?id=34564. Regards Andy