PArameters optionally by Reference and linking against pthread

From: Date: Mon, 06 Aug 2001 01:54:34 +0000
Subject: PArameters optionally by Reference and linking against pthread
Groups: php.dev 
Request: Send a blank email to php-dev+get-62198@lists.php.net to get a copy of this message
Hi, How can I within my PHP_FUNCTION() test if a given parameter was passed ByReference ? There used to hang around ParameterPassedByReference() which is gone now. I know I can tell functions via PHP_FE(foo, {1, BYREF_FORCE) etc. if they need references but I need to make a parameter optionally being passed by reference (depending on a value from another paramter). Is using PZVAL_IS_REF( *arg1) on zval **arg1 the proper way ? The other thing .. how can I add -lpthread to libaries when I build the linux CGI version ? Currently its catched in aclocal.m4 and not added to the library list and I only can overcome this my issuing LDFLAGS="-lpthread" make; why this ? kind regards, Markus -- Markus Fischer, http://guru.josefine.at/~mfischer/ EMail: mfischer@guru.josefine.at PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0

« previous php.dev (#62198) next »