Database Abstraction Extension: Coding questions

From: Date: Mon, 17 Jul 2000 08:21:57 +0000
Subject: Database Abstraction Extension: Coding questions
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-24695@lists.php.net to get a copy of this message
> > Rasmus Lerdorf wrote: > > <snip> > > Where does "INTERNAL_FUNCTION_PARAM_PASSTRHU" come from? > > If I specify a link as second parameter, PHP gives me "Supplied resource > is not a valid MySQL-Link resource in /test.php on line 5. However, var_dump gives > "resource(1) of type 8". > > I've problems getting a MySQL LInk-resource for the query to made. ANy > idea's ? > That's fixed now, but I had to change two things in /ext/mysql/php_mysql.c so that I could call php_mysql_get_default_link from within the extension. Therefore I had to remove the static modifier before: static int le_result, le_link, le_plink; (php_mysql.c: 50) and static php_mysql_get_default_link (INT.....S_DC) (php_mysql.c: 547) and declare (in db_layer.c): extern int le_result, le_link, le_plink. I think this is not wanted (maybe because of thread safety). Or is it no problem? -- Derick Rethans JDI Media Solutions H.v.Tussenbroekstraat 1 6952 BL Dieren The Netherlands e-mail: d.rethans@jdimedia.nl http://www.jdimedia.nl/

« previous php.dev (#24695) next »