Re: [PHP-DEV] Reading php.ini

2003-01-31 Thread Thomas Wentzel
Vinod Panicker wrote: Hi, Could someone pls point me to some documentation on how to access values from php.ini in my php extension? Tx, Vinod. http://zend.com/apidoc/zend.ini-file-support.php -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit:

Re: [PHP-DEV] PHP extension initialisation

2002-12-12 Thread Thomas Wentzel
Hi Tom, Did you ever get this problem solved? I'm fighting the same issue - and if no better solution present it self, I'm going to do it by accessing a file of my choise. If the file doesn't exist - create it and we know we are in the first call. If it does exist - delete it, and we know this is

[PHP-DEV] Macros for global startup/shutdown functions

2002-12-10 Thread Thomas Wentzel
Hi! How come there are no macros for global startup and shutdown functions? The Zend API documentation refers to such terms and even instructs that one should use STANDARD_MODULE_PROPERTIES_EX instead of STANDARD_MODULE_PROPERTIES if global functions are to be used. I have even found references

Re: [PHP-DEV] Macros for global startup/shutdown functions

2002-12-10 Thread Thomas Wentzel
to get called at this point! /Thomas Derick Rethans wrote: On Tue, 10 Dec 2002, Thomas Wentzel wrote: Hi! How come there are no macros for global startup and shutdown functions? The Zend API documentation refers to such terms and even instructs that one should use

Re: [PHP-DEV] Macros for global startup/shutdown functions

2002-12-10 Thread Thomas Wentzel
Derick Rethans wrote: They are indeed not called anymore, as we just removed the functionality, but it still compiles of course. However, where did you see this documented? It's neither in phpdoc or the ZendAPI docs. Derick Well.. a quick glimpse revealed the following two pages (don't know

Re: [PHP-DEV] Macros for global startup/shutdown functions

2002-12-10 Thread Thomas Wentzel
Derick Rethans wrote: Just move them to module startup/shutdown; it doesn't make any difference anyway. That's what I have been doing so far You are probably right, guess it's a matter of rethinking my code again ;) Do you recall in which version this functionality was removed? no,

[PHP-DEV] MINIT RINIT et al

2002-12-10 Thread Thomas Wentzel
Ok! My last postings were about the lack of global init/shutdown functions. Derick was kind enough to tell me, that these were deprecated and that I should use MINIT for my initalisations. Well.. this was what I had been doing until it just didn't seem adequate for my needs. I decided to give it

[PHP-DEV] SIGPIPE

2002-11-07 Thread Thomas Wentzel
Hi! I have a problem with an extension that I wrote for communicating with an old version of raima (a database). The problem is that whenever a SIGPIPE occurs, the database acts up! Well - I am hoping someone could give me a poitner as how - or rather where - to handle the SIGPIPE. a search in

[PHP-DEV] CVS Account Request: wentzel

2002-03-19 Thread Thomas Wentzel
Tanslating the documentation into danish -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] parse_str and session vars

2002-03-04 Thread Thomas Wentzel
didn't set my session var, foo So that is not the problem either! /Thomas Rasmus Lerdorf wrote: But your problem has absolutely nothing to do with parse_str() Does it behave differently if you replace parse_str() with $foo=foobar; ? I bet it doesn't On Mon, 4 Mar 2002, Thomas Wentzel wrote

Re: [PHP-DEV] parse_str and session vars

2002-03-04 Thread Thomas Wentzel
On Mon, 4 Mar 2002, Markus Fischer wrote: On Mon, Mar 04, 2002 at 09:21:26AM +0100, Thomas Wentzel wrote : And Markus - thanks, but I tried to subsitute parse_str($QUERY_STRING) with parse_str(foo=foobar) which also didn't set my session var, foo So that is not the problem either! Ah

Re: [PHP-DEV] parse_str and session vars

2002-03-04 Thread Thomas Wentzel
a reference to the original data and php_treat_data() is not doing the right thing when overwriting existing vars Or something funky like that It is too late at night to figure this particular code out -Rasmus On Mon, 4 Mar 2002, Thomas Wentzel wrote: hehe Thanks - I needed

Re: [PHP-DEV] parse_str and session vars

2002-03-04 Thread Thomas Wentzel
I'm very sorry, but it seems - that the solution with import_request_variables is even worse I've tried import_request_variables with (g,f) and (g,foo) but now foo isn't even set in file2php (the url arg to file3 is now bar) Thomas Wentzel wrote: OK! Thanks, Rasmus! That will allow me

Re: [PHP-DEV] parse_str and session vars

2002-03-04 Thread Thomas Wentzel
PHP 412 std no CVS Rasmus Lerdorf wrote: Which version of PHP? I tested your file123 thing here and it worked just fine On Mon, 4 Mar 2002, Thomas Wentzel wrote: I'm very sorry, but it seems - that the solution with import_request_variables is even worse I've tried

[PHP-DEV] parse_str and session vars

2002-03-03 Thread Thomas Wentzel
Hi, I have encountered an issue with parse_str, that I believe needs to be addressed - allthough I might be mistaken, and in that case feel free to ridicule me - and tell me to go to the general list :) Well I want to be able to do something like this: file1php: ? session_start();

Re: [PHP-DEV] parse_str and session vars]

2002-03-03 Thread Thomas Wentzel
for you Use $foo=$HTTP_GET_VARS['foo'] in that second script of yours Next time send your user-level question like this to php-general -Rasmus On Mon, 4 Mar 2002, Thomas Wentzel wrote: Hi, I have encountered an issue with parse_str, that I believe needs to be addressed

[PHP-DEV] V_OPEN and memory

2001-11-28 Thread Thomas Wentzel
What happened to V_OPEN/V_GETCWD/... I had them in 4.0.4pl1, but they are gone in 4.0.6 ??? /Thomas -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail:

Re: [PHP-DEV] enable truetype string function in gd

2001-09-24 Thread Thomas Wentzel
I realized that just after posting my question... Though solving my configure problem I still can't get freetype to work... I had everything running under php-4.0.4 (including gd and freetype 1.x) However due to the patent issues it is necessary for me to use freetype2 which isn't too bad in

Re: [PHP-DEV] enable truetype string function in gd

2001-09-24 Thread Thomas Wentzel
Thomas Wentzel wrote: I realized that just after posting my question... Though solving my configure problem I still can't get freetype to work... I had everything running under php-4.0.4 (including gd and freetype 1.x) However due to the patent issues it is necessary for me to use freetype2

[PHP-DEV] enable truetype string function in gd

2001-09-21 Thread Thomas Wentzel
Hi! I try to get the above mentioned to work with the 4.0.6 release on Linux! But even though I provide the configure script with the --enable-gd-native-ttf switch, it reports that the feature is a no go ./configure --enable-modules=so --without-mysql --with-pgsql=/usr/local \

[PHP-DEV] LIBSYMBOL??

2001-09-20 Thread Thomas Wentzel
Can anybody tell me what I'm supposed to do with the variable LIBSYMBOL in config.m4, when creating extensions (php-4.0.6). What does it refer to? regards Thomas -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: [PHP-DEV] LIBSYMBOL??

2001-09-20 Thread Thomas Wentzel
Never mind!! Incredible what you can learn when reading the source :) Thomas Wentzel wrote: Can anybody tell me what I'm supposed to do with the variable LIBSYMBOL in config.m4, when creating extensions (php-4.0.6). What does it refer to? regards Thomas -- PHP Development Mailing

[PHP-DEV] ZTS and PHP-4.0.6

2001-09-20 Thread Thomas Wentzel
I just went from php-4.0.4 to php-4.0.6 (linux) and now my extension won't compile... A lot of bitching anywhere I use my thread safe globals.. Did anything change with respect to this between the two versions?? /Thomas -- PHP Development Mailing List http://www.php.net/ To unsubscribe,

[PHP-DEV] apache segfaults following script execution

2001-08-31 Thread Thomas Wentzel
Hi, I'm having a strange problem that I hope some of you can answer... I've been writing an extension which I use (obviously :-) The problem is that after the script is executed (in it's entirety - even PHP_RSHUTDOWN_FUNCTION is executed) apache segfaults... I used gdb and started apache in

[PHP-DEV] update: [PHP-DEV] apache segfaults following script execution

2001-08-31 Thread Thomas Wentzel
Hehe... Should have said, that I'm looking for pointers as to what can cause such an error... /Thomas Thomas Wentzel wrote: Hi, I'm having a strange problem that I hope some of you can answer... I've been writing an extension which I use (obviously :-) The problem is that after

[PHP-DEV] associative arrays

2001-08-13 Thread Thomas Wentzel
Hi! I was wondering if someone would be so nice as to post a code snippet that returns an associative array... I'm writing an extension and am only able to return an ordinary array... Alternatively I would be very interested if someone could point me to some documentation on the zend_hash_xxx

Re: [PHP-DEV] Newbie writing a PHP extension

2001-08-13 Thread Thomas Wentzel
Hi Chris! I suggest you go out and by the book Web Application Development with PHP 4.0 which contains the same documents you are referring to... /Thomas -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP-DEV] associative arrays

2001-08-13 Thread Thomas Wentzel
That simple, huh? What can I say - You are the man! Thanx Rasmus Lerdorf wrote: Ah, ok. It's not much harder: pval *tmp_arr; array_init(return_value); MAKE_STD_ZVAL(tmp_arr); array_init(tmp_arr); add_assoc_string(tmp_arr, string index, foo, 1);

Re: [PHP-DEV] Shared memory in extensions

2001-04-03 Thread Thomas Wentzel
Alexander! You're absolutely right - that was exactly what I had done! Hmm I guess that at his point I have noone fooled :) I'm totally new to all this shm stuff and PHP extensions or rather the intrinsic details of their 'inner' workings... I simply figured that if I allocate a shared memory

[PHP-DEV] Shared memory in extensions

2001-04-02 Thread Thomas Wentzel
Hi Can anybody help me? I'm trying to allocate some shared memory in the PHP_MINIT_FUNCTION - but it fails everytime during the shmget function. I then did a little stand-alone C-prog, that did the same (tried to allocate 3,5M of mem) and it works fine - everytime! Is there some issued when

Re: [PHP-DEV] Shared memory in extensions

2001-04-02 Thread Thomas Wentzel
Linux! RedHat 6.2, Apache 1.3.14, PHP 4.0.4pl1 I forgot to mention that because shmget fails and that it does so in PHP_MINIT_FUNCTION, apache wil not start! Thomas I compile the module _into_ PHP due to the Alexander Feldman wrote: On Mon, 2 Apr 2001, Thomas Wentzel wrote: Hi

Re: [PHP-DEV] Shared memory in extensions

2001-04-02 Thread Thomas Wentzel
Feldman wrote: On Mon, 2 Apr 2001, Thomas Wentzel wrote: Linux! RedHat 6.2, Apache 1.3.14, PHP 4.0.4pl1 I forgot to mention that because shmget fails and that it does so in PHP_MINIT_FUNCTION, apache wil not start! With what parameters are you calling shmget? What is the errno

[PHP-DEV] Global variables in extensions

2001-03-30 Thread Thomas Wentzel
Hi! I have a problem that is driving me crazy. I need to allocate some memory that will be available throughout a session. Firstly a database connection is established, but at the same time I read all relevant information about the db (records, attributes, typedeclarations and such and such).

[Fwd: Re: [PHP-DEV] Global variables in extensions]

2001-03-30 Thread Thomas Wentzel
missed the mailinglist :) Original Message Subject: Re: [PHP-DEV] Global variables in extensions Date: Fri, 30 Mar 2001 13:16:36 +0200 From: Thomas Wentzel [EMAIL PROTECTED] Organization: 2M Electronic A/S To: Zeev Suraski [EMAIL PROTECTED] References: [EMAIL PROTECTED] Hi

Re: [PHP-DEV] Global variables in extensions

2001-03-30 Thread Thomas Wentzel
to have to use shared memory or some other type of persistent shared storage. Zeev At 13:16 30/3/2001, Thomas Wentzel wrote: Hi Zeev, My extension is compiled _into_ php which is loaded as a module in apache! I'm not using the php.ini file at the moment - is it really necessary? Thomas

Re: [PHP-DEV] Leaking references

2001-03-29 Thread Thomas Wentzel
DUH!!! I did a buildconf and then the errors disappeared... Thomas Wentzel wrote: Thank you very much, Wez! Perhaps you can be so nice as to answer my next question also ;) Whenever I do a configure with --enable-debug I get close to a zillion errors when compiling (or linking rather

Re: [PHP-DEV] Leaking references

2001-03-28 Thread Thomas Wentzel
Erhm all this talk about memory leaks - made me curious. How do I go about getting the sort of output, that Wez are showing below. I suspect that the extension I'm writing on has some severe memory issues. These issues are occuring in the PHP script, that utilizes my extension. Every other reload

Re: [PHP-DEV] Leaking references

2001-03-28 Thread Thomas Wentzel
I do come up with the most stupid questions - sorry :) Thomas Wentzel wrote: Erhm all this talk about memory leaks - made me curious. How do I go about getting the sort of output, that Wez are showing below. I suspect that the extension I'm writing on has some severe memory issues

Re: [PHP-DEV] Leaking references

2001-03-28 Thread Thomas Wentzel
tiple definition of `foobar'" and "first defined here" Am I supposed to do something particular in order for debug to work??? Regards Thomas Wez Furlong wrote: On 2001-03-28 15:09:27, "Thomas Wentzel" [EMAIL PROTECTED] wrote: I do come up with the most stupid qu

[PHP-DEV] Persistant connections...

2001-03-27 Thread Thomas Wentzel
Hi, I'm hacking on a module that is communicating with an old flatfile db. When a connection to the db is made, all necessary information (such as record and field sizes/types)from the db are read. If php-script A opens a connection to the db, and then loads a new php-script B - then the