-----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
> where P> I used references extensivly and now I'm surprised with:
>
> P> Warning: Call-time pass-by-reference has been deprecated - argument
> passed by P> value; If you would like to pass it by reference, modify the
> declaration of P> array_push(). If you would like to enable call-time
> pass-by-reference, you P> can set allow_call_time_pass_reference to true in
> your INI file. However, P> future versions may not support this any longer.
>
> P> I can't modify the php.ini since I'm in a shared but the problem is
> deeper. P> Why was it deprecated ? what replaced it ? is there any work
> arround ? P> My 200 lines of code without references could take much, much
> longer and be P> much, much more messy.
> P> Any ideas ?
> P> Thanks.
> P> - --
> P> Pupeno: [EMAIL PROTECTED]
> P> http://www.pupeno.com
> P> - ---
> P> Help the hungry children of Argentina,
> P> please go to (and make it your homepage):
> P> http://www.porloschicos.com/servlet/PorLosChicos?comando=donar
> P> -----BEGIN PGP SIGNATURE-----
> P> Version: GnuPG v1.0.7 (GNU/Linux)
>
> P> iD8DBQE+I02cLr8z5XzmSDQRAs/0AKCyf+UG0uZdbwG30WFU0UUNVWO7BwCgnCn5
> P> 2LmOOJi8uX+1dOqUfCTatSE=
> P> =5obN
> P> -----END PGP SIGNATURE-----
>
> I am sure array_push accepts the array as a reference so there is no need
> to use the & operator in the call. At least thats how it works in a simple
> class.....
No, I mean, what you're pushing inside the array is a reference:
array_push($anArrayOfReferences, &$thisIsAVariable);
that doesn't work, but I replaced by
$anArrayOfReferences[count($anArrayOfReferences)] = &$thisIsAVariable;
Thanks :)
- -- 
Pupeno: [EMAIL PROTECTED]
http://www.pupeno.com
- ---
Help the hungry children of Argentina,
please go to (and make it your homepage):
http://www.porloschicos.com/servlet/PorLosChicos?comando=donar
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+I2FvLr8z5XzmSDQRAjjOAKCm0pwkFAVC8vFfF2r8v/enZp4NhwCffIfV
x0ipECbUUmn72eJbEw0eg60=
=oFaa
-----END PGP SIGNATURE-----


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to