Re: [PHP] pass by reference variable length args

2010-01-05 Thread Robert Cummings
viraj wrote: if func_get_args supports pass by reference, we could have avoid the loop and pre-defined arg list. something like.. extract(func_get_args) :D Absolute! I'm not sure why there isn't some kind of way to retrieve a reference in this manner, but I suspect it's related to knowing

Re: [PHP] pass by reference variable length args

2010-01-05 Thread viraj
if func_get_args supports pass by reference, we could have avoid the loop and pre-defined arg list. something like.. extract(func_get_args) :D cheers! ~viraj On Wed, Jan 6, 2010 at 11:04 AM, viraj wrote: > thanks rob! > > here goes the working method. > > public function bind_result(&$arg1=

Re: [PHP] pass by reference variable length args

2010-01-05 Thread viraj
thanks rob! here goes the working method. public function bind_result(&$arg1=null,&$arg2=null,&$arg3=null) { $numArgs = func_num_args(); $args = array(); for ($i=1; $i<= $numArgs; $i++) { $args['arg' . $i] = &${'arg'.$i};

Re: [PHP] pass by reference variable length args

2010-01-05 Thread Robert Cummings
viraj wrote: hi all, i'm trying to write a wrapper function for "mysqli_stmt_bind_results". and expect it to work the same way it accepts and bind results to the original function. the problem is, i couldn't find a way to pass the args by reference via func_get_args and register the out put from

[PHP] pass by reference variable length args

2010-01-05 Thread viraj
hi all, i'm trying to write a wrapper function for "mysqli_stmt_bind_results". and expect it to work the same way it accepts and bind results to the original function. the problem is, i couldn't find a way to pass the args by reference via func_get_args and register the out put from call_user_func

Re: [PHP] pass by reference

2004-01-23 Thread Justin Patrin
Kevin Waterson wrote: This one time, at band camp, Tom Rogers <[EMAIL PROTECTED]> wrote: php can output the stream without having to save it to a file first if that is what is worrying you. That was sorta my concern, but not so much as a file, does it copy to memory anywhere, or, is it a dire

Re: [PHP] pass by reference

2004-01-23 Thread Cesar Cordovez
Kevin Waterson wrote: This one time, at band camp, Justin French <[EMAIL PROTECTED]> wrote: In other words, you HTML source looks like this: NOT Kevin, et all. Can this be posible? I mean where RAWDATA beening any image? Cesar -- PHP General Mailing List (http://www.php.net/) To uns

Re[2]: [PHP] pass by reference

2004-01-22 Thread Tom Rogers
Hi, Friday, January 23, 2004, 3:18:06 PM, you wrote: KW> This one time, at band camp, Tom Rogers <[EMAIL PROTECTED]> wrote: >> php can output the stream without having to save it to a file first if >> that is what is worrying you. KW> That was sorta my concern, but not so much as a file, does i

Re: [PHP] pass by reference

2004-01-22 Thread Kevin Waterson
This one time, at band camp, Tom Rogers <[EMAIL PROTECTED]> wrote: > php can output the stream without having to save it to a file first if > that is what is worrying you. That was sorta my concern, but not so much as a file, does it copy to memory anywhere, or, is it a direct stream to the brow

Re: [PHP] pass by reference

2004-01-22 Thread Tom Rogers
Hi, Friday, January 23, 2004, 2:17:07 PM, you wrote: KW> In a recent discussion about the MS terra server it was mentioned KW> this could not be done with PHP because the terraserver KW> " has special front-end code that allows images to be passed by reference, KW> so the image data goes directl

Re: [PHP] pass by reference

2004-01-22 Thread Kevin Waterson
This one time, at band camp, Justin French <[EMAIL PROTECTED]> wrote: > In other words, you HTML source looks like this: > > > > NOT > > Yes, but how is this different from anything the terraserver is doing? when the images.php script is called if would do something like Select the image

Re: [PHP] pass by reference

2004-01-22 Thread Justin French
On Friday, January 23, 2004, at 03:17 PM, Kevin Waterson wrote: The implication is that the 'middle layer' (PHP) would slow things down to an unusable state. so, when I extract an image from the database and echo it to a webpage, is there any copying done? or is it a direct stream to the webpage

[PHP] pass by reference

2004-01-22 Thread Kevin Waterson
In a recent discussion about the MS terra server it was mentioned this could not be done with PHP because the terraserver " has special front-end code that allows images to be passed by reference, so the image data goes directly from the database access back end to the client browser, without h

Re[2]: [PHP] pass by reference

2003-01-13 Thread Tom Rogers
Hi, Tuesday, January 14, 2003, 11:01:33 AM, you wrote: P> -BEGIN PGP SIGNED MESSAGE- P> Hash: SHA1 P> On Monday 13 January 2003 20:01, Tom Rogers wrote: >> Hi, >> >> Tuesday, January 14, 2003, 9:36:57 AM, you wrote: >> P> -BEGIN PGP SIGNED MESSAGE- >> P> Hash: SHA1 >> >> P> I did

Re: [PHP] pass by reference

2003-01-13 Thread Pupeno
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Monday 13 January 2003 20:01, Tom Rogers wrote: > Hi, > > Tuesday, January 14, 2003, 9:36:57 AM, you wrote: > P> -BEGIN PGP SIGNED MESSAGE- > P> Hash: SHA1 > > P> I did a complex class that works with XML parsing and complex structured > whe

Re: [PHP] pass by reference

2003-01-13 Thread Tom Rogers
Hi, Tuesday, January 14, 2003, 9:36:57 AM, you wrote: P> -BEGIN PGP SIGNED MESSAGE- P> Hash: SHA1 P> I did a complex class that works with XML parsing and complex structured where P> I used references extensivly and now I'm surprised with: P> Warning: Call-time pass-by-reference has been

[PHP] pass by reference

2003-01-13 Thread Pupeno
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I did a complex class that works with XML parsing and complex structured where I used references extensivly and now I'm surprised with: Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it b