Professional Web Applications Themes

#40480 [NEW]: COM: "Cannot pass parameter by reference" error since 5.2.1 - PHP Bugs

From: tetikr at spytech dot cz Operating system: Windows XP, IIS 5.1 PHP version: 5.2.1 PHP Bug Type: COM related Bug description: COM: "Cannot pass parameter by reference" error since 5.2.1 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); ...

  1. #1

    Default #40480 [NEW]: COM: "Cannot pass parameter by reference" error since 5.2.1

    From: tetikr at spytech dot cz
    Operating system: Windows XP, IIS 5.1
    PHP version: 5.2.1
    PHP Bug Type: COM related
    Bug description: COM: "Cannot pass parameter by reference" error since 5.2.1

    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


    --
    Edit bug report at [url]http://bugs.php.net/?id=40480&edit=1[/url]
    --
    Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=40480&r=trysnapshot44[/url]
    Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=40480&r=trysnapshot52[/url]
    Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=40480&r=trysnapshot60[/url]
    Fixed in CVS: [url]http://bugs.php.net/fix.php?id=40480&r=fixedcvs[/url]
    Fixed in release: [url]http://bugs.php.net/fix.php?id=40480&r=alreadyfixed[/url]
    Need backtrace: [url]http://bugs.php.net/fix.php?id=40480&r=needtrace[/url]
    Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=40480&r=needscript[/url]
    Try newer version: [url]http://bugs.php.net/fix.php?id=40480&r=oldversion[/url]
    Not developer issue: [url]http://bugs.php.net/fix.php?id=40480&r=support[/url]
    Expected behavior: [url]http://bugs.php.net/fix.php?id=40480&r=notwrong[/url]
    Not enough info: [url]http://bugs.php.net/fix.php?id=40480&r=notenoughinfo[/url]
    Submitted twice: [url]http://bugs.php.net/fix.php?id=40480&r=submittedtwice[/url]
    register_globals: [url]http://bugs.php.net/fix.php?id=40480&r=globals[/url]
    PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=40480&r=php3[/url]
    Daylight Savings: [url]http://bugs.php.net/fix.php?id=40480&r=dst[/url]
    IIS Stability: [url]http://bugs.php.net/fix.php?id=40480&r=isapi[/url]
    Install GNU Sed: [url]http://bugs.php.net/fix.php?id=40480&r=gnused[/url]
    Floating point limitations: [url]http://bugs.php.net/fix.php?id=40480&r=float[/url]
    No Zend Extensions: [url]http://bugs.php.net/fix.php?id=40480&r=nozend[/url]
    MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=40480&r=mysqlcfg[/url]
    tetikr at spytech dot cz Guest

  2. #2

    Default #40480 [Opn->Fbk]: COM: "Cannot pass parameter by reference" error since 5.2.1

    ID: 40480
    Updated by: [email]tony2001php.net[/email]
    Reported By: tetikr at spytech dot cz
    -Status: Open
    +Status: Feedback
    Bug Type: COM related
    Operating System: Windows XP, IIS 5.1
    PHP Version: 5.2.1
    New Comment:
    >A custom COM object is involved -> reproduce code is useless
    Well, I doubt we can fix something that we can't reproduce.
    Are you sure 5.2.0 works fine for you?
    What if you take php_com.dll (or whatever it's name) from 5.2.0 and put
    it instead of the one from 5.2.1?


    Previous Comments:
    ------------------------------------------------------------------------

    [2007-02-14 11:48:46] 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



    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=40480&edit=1[/url]
    tony2001@php.net Guest

  3. #3

    Default #40480 [Fbk->Opn]: COM: "Cannot pass parameter by reference" error since 5.2.1

    ID: 40480
    User updated by: tetikr at spytech dot cz
    Reported By: tetikr at spytech dot cz
    -Status: Feedback
    +Status: Open
    Bug Type: COM related
    Operating System: Windows XP, IIS 5.1
    PHP Version: 5.2.1
    New Comment:

    5.2.0 works fine, I'm sure. There is no php_com.dll or similiar in the
    ext folder. COM is built-in I think.


    Previous Comments:
    ------------------------------------------------------------------------

    [2007-02-14 12:10:19] [email]tony2001php.net[/email]
    >A custom COM object is involved -> reproduce code is useless
    Well, I doubt we can fix something that we can't reproduce.
    Are you sure 5.2.0 works fine for you?
    What if you take php_com.dll (or whatever it's name) from 5.2.0 and put
    it instead of the one from 5.2.1?

    ------------------------------------------------------------------------

    [2007-02-14 11:48:46] 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



    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=40480&edit=1[/url]
    tetikr at spytech dot cz Guest

  4. #4

    Default #40480 [Com]: COM: "Cannot pass parameter by reference" error since 5.2.1

    ID: 40480
    Comment by: wharmby at uk dot ibm dot com
    Reported By: tetikr at spytech dot cz
    Status: Open
    Bug Type: COM related
    Operating System: Windows XP, IIS 5.1
    PHP Version: 5.2.1
    New Comment:

    Hi Tony,
    I fixed a very similar problem to this in 5.2 and HEAD under defect
    34564 on 2nd Feb 2007. See [url]http://bugs.php.net/bug.php?id=34564[/url].

    Regards
    Andy


    Previous Comments:
    ------------------------------------------------------------------------

    [2007-02-14 12:39:58] tetikr at spytech dot cz

    5.2.0 works fine, I'm sure. There is no php_com.dll or similiar in the
    ext folder. COM is built-in I think.

    ------------------------------------------------------------------------

    [2007-02-14 12:10:19] [email]tony2001php.net[/email]
    >A custom COM object is involved -> reproduce code is useless
    Well, I doubt we can fix something that we can't reproduce.
    Are you sure 5.2.0 works fine for you?
    What if you take php_com.dll (or whatever it's name) from 5.2.0 and put
    it instead of the one from 5.2.1?

    ------------------------------------------------------------------------

    [2007-02-14 11:48:46] 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



    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=40480&edit=1[/url]
    wharmby at uk dot ibm dot com Guest

  5. #5

    Default #40480 [Opn->Fbk]: COM: "Cannot pass parameter by reference" error since 5.2.1

    ID: 40480
    Updated by: [email]tony2001php.net[/email]
    Reported By: tetikr at spytech dot cz
    -Status: Open
    +Status: Feedback
    Bug Type: COM related
    Operating System: Windows XP, IIS 5.1
    PHP Version: 5.2.1
    New Comment:

    Please try using this CVS snapshot:

    [url]http://snaps.php.net/php5.2-latest.tar.gz[/url]

    For Windows:

    [url]http://snaps.php.net/win32/php5.2-win32-latest.zip[/url]




    Previous Comments:
    ------------------------------------------------------------------------

    [2007-03-01 17:28:58] wharmby at uk dot ibm dot com

    Hi Tony,
    I fixed a very similar problem to this in 5.2 and HEAD under defect
    34564 on 2nd Feb 2007. See [url]http://bugs.php.net/bug.php?id=34564[/url].

    Regards
    Andy

    ------------------------------------------------------------------------

    [2007-02-14 12:39:58] tetikr at spytech dot cz

    5.2.0 works fine, I'm sure. There is no php_com.dll or similiar in the
    ext folder. COM is built-in I think.

    ------------------------------------------------------------------------

    [2007-02-14 12:10:19] [email]tony2001php.net[/email]
    >A custom COM object is involved -> reproduce code is useless
    Well, I doubt we can fix something that we can't reproduce.
    Are you sure 5.2.0 works fine for you?
    What if you take php_com.dll (or whatever it's name) from 5.2.0 and put
    it instead of the one from 5.2.1?

    ------------------------------------------------------------------------

    [2007-02-14 11:48:46] 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



    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=40480&edit=1[/url]
    tony2001@php.net Guest

  6. #6

    Default #40480 [NoF->Csd]: COM: "Cannot pass parameter by reference" error since 5.2.1

    ID: 40480
    User updated by: tetikr at spytech dot cz
    Reported By: tetikr at spytech dot cz
    -Status: No Feedback
    +Status: Closed
    Bug Type: COM related
    Operating System: Windows XP, IIS 5.1
    PHP Version: 5.2.1
    New Comment:

    The PHP 5.2.2 downloaded on 2006-03-20 works well. Thanks.


    Previous Comments:
    ------------------------------------------------------------------------

    [2007-03-09 01:00:01] php-bugs at lists dot php dot net

    No feedback was provided for this bug for over a week, so it is
    being suspended automatically. If you are able to provide the
    information that was originally requested, please do so and change
    the status of the bug back to "Open".

    ------------------------------------------------------------------------

    [2007-03-01 17:33:19] net

    Please try using this CVS snapshot:

    http://snaps.php.net/php5.2-latest.tar.gz

    For Windows:

    http://snaps.php.net/win32/php5.2-win32-latest.zip



    ------------------------------------------------------------------------

    [2007-03-01 17:28:58] wharmby at uk dot ibm dot com

    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

    ------------------------------------------------------------------------

    [2007-02-14 12:39:58] tetikr at spytech dot cz

    5.2.0 works fine, I'm sure. There is no php_com.dll or similiar in the
    ext folder. COM is built-in I think.

    ------------------------------------------------------------------------

    [2007-02-14 12:10:19] net
     
    Well, I doubt we can fix something that we can't reproduce.
    Are you sure 5.2.0 works fine for you?
    What if you take php_com.dll (or whatever it's name) from 5.2.0 and put
    it instead of the one from 5.2.1?

    ------------------------------------------------------------------------

    The remainder of the comments for this report are too long. To view
    the rest of the comments, please view the bug report online at
    http://bugs.php.net/40480

    --
    Edit this bug report at http://bugs.php.net/?id=40480&edit=1
    tetikr Guest

Similar Threads

  1. Can't launch Acrobat7 pro "There was an error while loading the plug-in 'Comments'.Bad parameter."
    By Kenneth_L._Frakes@adobeforums.com in forum Adobe Acrobat Macintosh
    Replies: 1
    Last Post: July 21st, 09:12 PM
  2. Acrobat Form Submit error: changes VALUE="true" to "0"
    By Douglas_Maus@adobeforums.com in forum Adobe Acrobat Macintosh
    Replies: 1
    Last Post: August 12th, 05:25 PM
  3. #12029 [Com]: "--with-apxs" can cause the error "MySQL: Unable to save result set in"
    By sietzepost at streetwisedd dot nl in forum PHP Development
    Replies: 1
    Last Post: October 3rd, 09:21 AM
  4. "Object reference not set to an instance of an object" error
    By Lauchlan M in forum ASP.NET Security
    Replies: 3
    Last Post: August 17th, 09:37 AM
  5. Replies: 5
    Last Post: August 11th, 07:44 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139