[PHP-CVS] cvs: php4 /ext/midgard midgard.c

2001-03-19 Thread Emiliano Heyns
emile Mon Mar 19 01:49:59 2001 EDT Modified files: /php4/ext/midgard midgard.c Log: return userid from mgd_auth_midgard Index: php4/ext/midgard/midgard.c diff -u php4/ext/midgard/midgard.c:1.23 php4/ext/midgard/midgard.c:1.24 --- php4/ext/midgard/midgard

[PHP-CVS] cvs: php4 /ext/midgard midgard.c

2001-03-15 Thread Emiliano Heyns
emile Thu Mar 15 02:56:56 2001 EDT Modified files: /php4/ext/midgard midgard.c Log: Remove php_error for situations where Midgard is loaded but not configured (which is valid). Index: php4/ext/midgard/midgard.c diff -u php4/ext/midgard/midgard.c:1.22 p

Re: [PHP-CVS] cvs: php4 /ext/midgard midgard.c

2001-02-25 Thread Andi Gutmans
Are you sure you shouldn't be using zval_ptr_dtor(args[0]) as opposed to zval_dtor(). I see you guys doing this a lot and usually you'd want to use zval_ptr_dtor(). It reduces reference count and only if the zval really needs freeing does it run zval_dtor() and efree(). In any case, you guys s

[PHP-CVS] cvs: php4 /ext/midgard midgard.c

2001-02-25 Thread David Guerizec
davidg Sun Feb 25 15:34:48 2001 EDT Modified files: /php4/ext/midgard midgard.c Log: force user to pass $xparam by reference (from mgd_walk_xxx_tree() functions) Index: php4/ext/midgard/midgard.c diff -u php4/ext/midgard/midgard.c:1.18 php4/ext/midgard/mi

[PHP-CVS] cvs: php4 /ext/midgard midgard.c

2001-02-23 Thread David Guerizec
davidg Fri Feb 23 01:53:49 2001 EDT Modified files: /php4/ext/midgard midgard.c Log: removed unneeded header inclusion. Index: php4/ext/midgard/midgard.c diff -u php4/ext/midgard/midgard.c:1.15 php4/ext/midgard/midgard.c:1.16 --- php4/ext/midgard/midgard.

[PHP-CVS] cvs: php4 /ext/midgard midgard.c

2001-02-23 Thread David Guerizec
davidg Fri Feb 23 01:22:09 2001 EDT Modified files: /php4/ext/midgard midgard.c Log: Removed constants registration, added a conversion table $midgard->types[$objtype] try var_dump($midgard) for more details Index: php4/ext/midgard/midgard.c diff -u php

[PHP-CVS] cvs: php4 /ext/midgard midgard.c

2001-02-22 Thread David Guerizec
davidg Thu Feb 22 12:32:20 2001 EDT Modified files: /php4/ext/midgard midgard.c Log: Registering Midgard constants. Index: php4/ext/midgard/midgard.c diff -u php4/ext/midgard/midgard.c:1.13 php4/ext/midgard/midgard.c:1.14 --- php4/ext/midgard/midgard.c:1.

Re: [PHP-CVS] cvs: php4 /ext/midgard midgard.c

2001-02-22 Thread Thies C. Arntzen
On Thu, Feb 22, 2001 at 01:38:36PM +0200, Andi Gutmans wrote: > Because thread-wide globals are only available when you're actually in the > thread (during a request) and not when the process starts up. If you need > true globals you can just use globals. sorry - you're right (and i'm stpid

Re: [PHP-CVS] cvs: php4 /ext/midgard midgard.c

2001-02-22 Thread Andi Gutmans
Yes. It will call your init_globals just in time, usually on your first access to the data if I remember correctly. Your fix is correct. I didn't see it when I sent that Email. Andi At 12:37 PM 2/22/2001 +0100, Emiliano wrote: >Andi Gutmans wrote: > > > > You only have the module globals durin

Re: [PHP-CVS] cvs: php4 /ext/midgard midgard.c

2001-02-22 Thread Andi Gutmans
Because thread-wide globals are only available when you're actually in the thread (during a request) and not when the process starts up. If you need true globals you can just use globals. Andi At 12:34 PM 2/22/2001 +0100, Thies C. Arntzen wrote: >On Thu, Feb 22, 2001 at 01:26:45PM +0200, Andi

Re: [PHP-CVS] cvs: php4 /ext/midgard midgard.c

2001-02-22 Thread Emiliano
Andi Gutmans wrote: > > You only have the module globals during requests (rinit/rshutdown). You > can't access them in module init/module shutdown. Yeah, I realized that moments later and removed it. But ZEND_INIT_MODULE_GLOBALS will call the init_globals function before the request starts, rig

Re: [PHP-CVS] cvs: php4 /ext/midgard midgard.c

2001-02-22 Thread Thies C. Arntzen
On Thu, Feb 22, 2001 at 01:26:45PM +0200, Andi Gutmans wrote: > You only have the module globals during requests (rinit/rshutdown). You > can't access them in module init/module shutdown. could you explain why? ok the the midgard PHP_MINIT_FUNCTION does not allocate a tsrm_id for the mod

Re: [PHP-CVS] cvs: php4 /ext/midgard midgard.c

2001-02-22 Thread Andi Gutmans
You only have the module globals during requests (rinit/rshutdown). You can't access them in module init/module shutdown. Andi At 11:35 PM 2/20/2001 +, Emiliano Heyns wrote: >emile Tue Feb 20 15:35:35 2001 EDT > > Modified files: > /php4/ext/midgard midgard.c > Log: >

[PHP-CVS] cvs: php4 /ext/midgard midgard.c

2001-02-21 Thread David Guerizec
davidg Wed Feb 21 04:21:02 2001 EDT Modified files: /php4/ext/midgard midgard.c Log: used dynamic alloc to avoid segfault ;) Index: php4/ext/midgard/midgard.c diff -u php4/ext/midgard/midgard.c:1.9 php4/ext/midgard/midgard.c:1.10 --- php4/ext/midgard/midg

[PHP-CVS] cvs: php4 /ext/midgard midgard.c

2001-02-20 Thread David Guerizec
davidg Tue Feb 20 16:29:34 2001 EDT Modified files: /php4/ext/midgard midgard.c Log: more explicit variable names. Index: php4/ext/midgard/midgard.c diff -u php4/ext/midgard/midgard.c:1.8 php4/ext/midgard/midgard.c:1.9 --- php4/ext/midgard/midgard.c:1.8

[PHP-CVS] cvs: php4 /ext/midgard midgard.c

2001-02-20 Thread Emiliano Heyns
emile Tue Feb 20 15:54:07 2001 EDT Modified files: /php4/ext/midgard midgard.c Log: Argh, that's what init_globals does. Sorry, on auto-pilot fixing things in both midgard-php3 and midgard-php4 Index: php4/ext/midgard/midgard.c diff -u php4/ext/midgard

[PHP-CVS] cvs: php4 /ext/midgard midgard.c

2001-02-20 Thread Emiliano Heyns
emile Tue Feb 20 15:35:35 2001 EDT Modified files: /php4/ext/midgard midgard.c Log: Initialize globals to NULL at module init Index: php4/ext/midgard/midgard.c diff -u php4/ext/midgard/midgard.c:1.5 php4/ext/midgard/midgard.c:1.6 --- php4/ext/midgard/mid

[PHP-CVS] cvs: php4 /ext/midgard midgard.c

2001-02-18 Thread David Guerizec
davidg Sun Feb 18 10:45:25 2001 EDT Modified files: /php4/ext/midgard midgard.c Log: allow execution of 'normal' php scripts Index: php4/ext/midgard/midgard.c diff -u php4/ext/midgard/midgard.c:1.4 php4/ext/midgard/midgard.c:1.5 --- php4/ext/midgard/midga