Path: csiph.com!usenet.pasdenom.info!news.albasani.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <2206171.g8a4ScMWm9@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Wed, 20 Mar 2013 15:29:32 +0100 User-Agent: KNode/4.8.5 Content-Transfer-Encoding: 8Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. <98cc9763-7f32-4ca7-9d52-f698c222f246@n2g2000yqg.googlegroups.com> MIME-Version: 1.0 Lines: 25 NNTP-Posting-Date: 20 Mar 2013 15:29:53 CET NNTP-Posting-Host: 67c47b01.newsspool4.arcor-online.net X-Trace: DXC=>:c2_f^Y17IE4ZB2flKORA4IUK]gfN4=d`5TVgTlE X-Complaints-To: usenet-abuse@arcor.de Xref: csiph.com comp.lang.php:8759 oldyork90 wrote: > $vr = array(); > . > . > $bind_name = 'bp' . $fld_name; > @ $$bind_name = $validated_field_input; > @ array_push($vr, &$$bind_name); > . > @ array_push($vr, &$validated_uid); Simply omit the “&”s in the calls. Not pass-by-reference as such is deprecated since PHP 5.3, but “*call-time* pass-by-reference”, as the warning says. The rationale is that it should be up to the function to decide whether a parameter should be treated as a reference, and so require a name for a variable to be be modified; not to the caller. RTFM: PointedEars -- Danny Goodman's books are out of date and teach practices that are positively harmful for cross-browser scripting. -- Richard Cornford, cljs, (2004)