VT_BSTR [8] */ var_dump($FunctionName); // '' or 'a'** Expected result: ---------------- 'something' Actual result: -------------- '' or 'a' (when using "$FunctionName = 'a';") -- Edit bug report at [url]http://bugs.php.net/?id=39145&edit=1[/url] -- Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=39145&r=trysnapshot44[/url] Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=39145&r=trysnapshot52[/url] Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=39145&r=trysnapshot60[/url] Fixed in CVS: [url]http://bugs.php.net/fix.php?id=39145&r=fixedcvs[/url] Fixed in release: [url]http://bugs.php.net/fix.php?id=39145&r=alreadyfixed[/url] Need backtrace: [url]http://bugs.php.net/fix.php?id=39145&r=needtrace[/url] Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=39145&r=needscript[/url] Try newer version: [url]http://bugs.php.net/fix.php?id=39145&r=oldversion[/url] Not developer issue: [url]http://bugs.php.net/fix.php?id=39145&r=support[/url] Expected behavior: [url]http://bugs.php.net/fix.php?id=39145&r=notwrong[/url] Not enough info: [url]http://bugs.php.net/fix.php?id=39145&r=notenoughinfo[/url] Submitted twice: [url]http://bugs.php.net/fix.php?id=39145&r=submittedtwice[/url] register_globals: [url]http://bugs.php.net/fix.php?id=39145&r=globals[/url] PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=39145&r=php3[/url] Daylight Savings: [url]http://bugs.php.net/fix.php?id=39145&r=dst[/url] IIS Stability: [url]http://bugs.php.net/fix.php?id=39145&r=isapi[/url] Install GNU Sed: [url]http://bugs.php.net/fix.php?id=39145&r=gnused[/url] Floating point limitations: [url]http://bugs.php.net/fix.php?id=39145&r=float[/url] No Zend Extensions: [url]http://bugs.php.net/fix.php?id=39145&r=nozend[/url] MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=39145&r=mysqlcfg[/url] [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => [htmlstate] => on_nl2br [postusername] => sbreiler at gmx dot de [ip] => php-bugs@lists. [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 1 [islastshown] => [isfirstshown] => 1 [attachments] => [allattachments] => ) --> VT_BSTR [8] */ var_dump($FunctionName); // '' or 'a'** Expected result: ---------------- 'something' Actual result: -------------- '' or 'a' (when using "$FunctionName = 'a';") ------------------------------------------------------------------------ -- Edit this bug report at [url]http://bugs.php.net/?id=39145&edit=1[/url] [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => <200610131025.k9DAPExA076276@y1.php.net> [ref] => [htmlstate] => on_nl2br [postusername] => sbreiler at gmx dot de [ip] => php-bugs@lists. [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 2 [islastshown] => [isfirstshown] => [attachments] => [allattachments] => ) --> VT_BSTR [8] */ var_dump($FunctionName); // '' or 'a'** Expected result: ---------------- 'something' Actual result: -------------- '' or 'a' (when using "$FunctionName = 'a';") ------------------------------------------------------------------------ -- Edit this bug report at [url]http://bugs.php.net/?id=39145&edit=1[/url] [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => <200612241401.kBOE1DaY027604@y1.php.net> [ref] => [htmlstate] => on_nl2br [postusername] => rrichards@php.net [ip] => rrichards@php.n [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 3 [islastshown] => 1 [isfirstshown] => [attachments] => [allattachments] => ) --> #39145 [NEW]: OUT Parameter is not changing - PHP Bugs

#39145 [NEW]: OUT Parameter is not changing - PHP Bugs

From: sbreiler at gmx dot de Operating system: Windows XP SP2 PHP version: 5.2.0RC5 PHP Bug Type: COM related Bug description: OUT Parameter is not changing Description: ------------ Please have a look at the code below. I also tried to use a Variant, which doesn't worked out for me. Also "$mycom->myFunction( &$FunctionName );" doesn't work. Tried with PHP version "5.2.0.0 RC6-dev" and "5.1.6.6" Reproduce code: --------------- $mycom = new COM('my.own'); settype($FunctionName,"String"); //$FunctionName = 'a'; // **doesn't work either $mycom->myFunction( $FunctionName ); /* VT_PTR [26] [out] --> VT_BSTR [8] */ var_dump($FunctionName); // '' or 'a'** Expected result: ---------------- 'something' Actual result: ...

  1. #1

    Default #39145 [NEW]: OUT Parameter is not changing

    From: sbreiler at gmx dot de
    Operating system: Windows XP SP2
    PHP version: 5.2.0RC5
    PHP Bug Type: COM related
    Bug description: OUT Parameter is not changing

    Description:
    ------------
    Please have a look at the code below. I also tried to use a Variant, which
    doesn't worked out for me. Also "$mycom->myFunction( &$FunctionName );"
    doesn't work.

    Tried with PHP version "5.2.0.0 RC6-dev" and "5.1.6.6"

    Reproduce code:
    ---------------
    $mycom = new COM('my.own');
    settype($FunctionName,"String");
    //$FunctionName = 'a'; // **doesn't work either
    $mycom->myFunction( $FunctionName ); /* VT_PTR [26] [out] --> VT_BSTR [8]
    */
    var_dump($FunctionName); // '' or 'a'**

    Expected result:
    ----------------
    'something'

    Actual result:
    --------------
    '' or 'a' (when using "$FunctionName = 'a';")

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

  2. #2

    Default #39145 [Opn]: OUT Parameter is not changing

    ID: 39145
    User updated by: sbreiler at gmx dot de
    Reported By: sbreiler at gmx dot de
    Status: Open
    Bug Type: COM related
    Operating System: Windows XP SP2
    PHP Version: 5.2.0RC5
    New Comment:

    In Delphi it looks like this (and is working):

    Code:
    procedure TForm1.Button1Click(Sender: TObject);
    var
    mycom: Variant;
    FunctionName: String;
    begin
    mycom := CreateOleObject('my.own'); // or CreateComObject
    mycom.myFunction(FunctionName);
    ShowMessage(FunctionName);
    end;

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

    [2006-10-13 10:19:29] sbreiler at gmx dot de

    Description:
    ------------
    Please have a look at the code below. I also tried to use a Variant,
    which doesn't worked out for me. Also "$mycom->myFunction(
    &$FunctionName );" doesn't work.

    Tried with PHP version "5.2.0.0 RC6-dev" and "5.1.6.6"

    Reproduce code:
    ---------------
    $mycom = new COM('my.own');
    settype($FunctionName,"String");
    //$FunctionName = 'a'; // **doesn't work either
    $mycom->myFunction( $FunctionName ); /* VT_PTR [26] [out] --> VT_BSTR
    [8] */
    var_dump($FunctionName); // '' or 'a'**

    Expected result:
    ----------------
    'something'

    Actual result:
    --------------
    '' or 'a' (when using "$FunctionName = 'a';")


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


    --
    Edit this bug report at [url]http://bugs.php.net/?id=39145&edit=1[/url]
    sbreiler at gmx dot de Guest

  3. #3

    Default #39145 [Opn->Bgs]: OUT Parameter is not changing

    ID: 39145
    Updated by: [email]rrichardsphp.net[/email]
    Reported By: sbreiler at gmx dot de
    -Status: Open
    +Status: Bogus
    Bug Type: COM related
    Operating System: Windows XP SP2
    PHP Version: 5.2.0RC5
    New Comment:

    Please do not submit the same bug more than once. An existing
    bug report already describes this very problem. Even if you feel
    that your issue is somewhat different, the resolution is likely
    to be the same.

    Thank you for your interest in PHP.

    dupe of bug #34564


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

    [2006-10-13 10:25:13] sbreiler at gmx dot de

    In Delphi it looks like this (and is working):

    Code:
    procedure TForm1.Button1Click(Sender: TObject);
    var
    mycom: Variant;
    FunctionName: String;
    begin
    mycom := CreateOleObject('my.own'); // or CreateComObject
    mycom.myFunction(FunctionName);
    ShowMessage(FunctionName);
    end;
    ------------------------------------------------------------------------

    [2006-10-13 10:19:29] sbreiler at gmx dot de

    Description:
    ------------
    Please have a look at the code below. I also tried to use a Variant,
    which doesn't worked out for me. Also "$mycom->myFunction(
    &$FunctionName );" doesn't work.

    Tried with PHP version "5.2.0.0 RC6-dev" and "5.1.6.6"

    Reproduce code:
    ---------------
    $mycom = new COM('my.own');
    settype($FunctionName,"String");
    //$FunctionName = 'a'; // **doesn't work either
    $mycom->myFunction( $FunctionName ); /* VT_PTR [26] [out] --> VT_BSTR
    [8] */
    var_dump($FunctionName); // '' or 'a'**

    Expected result:
    ----------------
    'something'

    Actual result:
    --------------
    '' or 'a' (when using "$FunctionName = 'a';")


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


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

Similar Threads

  1. Bad Parameter ! box
    By JustStupid in forum Macromedia Director 3D
    Replies: 1
    Last Post: August 21st, 02:30 AM
  2. Parameter help
    By digi duck in forum Macromedia Dynamic HTML
    Replies: 0
    Last Post: February 27th, 06:36 PM
  3. URL parameter in DW??
    By nhanle in forum Dreamweaver AppDev
    Replies: 1
    Last Post: April 26th, 08:07 AM
  4. Changing text without changing frames.
    By Jose Olivas in forum Macromedia Flash
    Replies: 1
    Last Post: March 21st, 11:36 AM
  5. Date Parameter For Saved Parameter Queries
    By melody in forum ASP Database
    Replies: 13
    Last Post: December 19th, 09:22 AM

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
  •