> -----Ursprungliche Nachricht-----
> Von: Harald Radi [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 25. Janner 2001 16:43
> An: Stig Venaas
> Betreff: AW: [PHP-DEV] zval question
>
>
> > -----Ursprungliche Nachricht-----
> > Von: Stig Venaas [mailto:[EMAIL PROTECTED]]
> > Gesendet: Donnerstag, 25. Janner 2001 07:51
> > An: Harald Radi
> > Cc: PHP Developer List
> > Betreff: Re: [PHP-DEV] zval question
> >
> >
> > The PHP script can use & in front of an argument to pass it by
> reference.
> > If you always want it to be a reference, you do that in the C code, see
> > for instance the ldap extension and look for third_argument_force_ref.
> > First an array with this name is declared, then in the function table
> > you will find this again. There are also other examples there. You could
> > also look at the code for the functions to see how the arguments should
> > be handled. Hopefully the code is correct.
>
> i thought so too, but this is what php says:
>
> <b>Warning</b>: Call-time pass-by-reference has been deprecated
> - argument pass
> ed by value; If you would like to pass it by reference, modify
> the declaration
> of [runtime function name](). If you would like to enable
> call-time pass-by-ref
> erence, you can set allow_call_time_pass_reference to true in
> your INI file. Ho
> wever, future versions may not support this any longer. in
> <b>c:\testwebs\com.p
> hp</b> on line <b>10</b><br>
>
>
> > You only want to force a reference if you want to alter the argument
> > inside the function I think. If you don't alter the argument, you
> > shouldn't need to care if they are references or not.
>
> yes, but i want to let the scriptwriter decide if his variable
> should be overwritten by either passing
> it by referece or by value.
> on the other hand it makes live easier for my, since i don't know
> if the method expects a reference or a value.
> the scriptwriter should know this.
>
> > I'm not 100% certain about these things, if I'm wrong I hope someone
> > will correct me, so that I too can learn something (:
>
> i hope so too :) hello out there ....
>
> >
> > > another question to the core team:
> > > is it a problem to implement the COM extension as a cpp file,
> > since the c
> > > com-interface is not well documented and doesn't support everything ?
> > > since this is only a win32 module it shouldn't be a problem,
> > any objections
> > > ?
> >
> > Can't answer this one.
>
> it's not a problem anymore, i can do it in c too once it works in cpp.
>
> thanks for responce.
>
> harald.
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]