Re: [PHP-DEV] Issues in passing session data

2003-03-05 Thread Derick Rethans
Hello, please forward user questions to the [EMAIL PROTECTED] mailinglist, this list is for development _OF_ PHP, not development _with_ PHP. Derick On Wed, 5 Mar 2003, Hantzley wrote: Hi php users, I have some questions regarding the way developers uses php sessions. For instance, most

Re: [PHP-DEV] [PATCH] - 64 bit issue with zend_parse_parameters calls

2003-03-05 Thread David Hill
Just commit these.. I will - give me a couple of days though - given that it is my first commit with php I want to triple check that I have got the process correct before I push the button :-) Dave -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit:

Re: [PHP-DEV] [PATCH] - fix for 64 bit issues with OnUpdateInt

2003-03-05 Thread David Hill
A single API is probably sufficient but I can understand that extension writers might want to use ints. The INI flag might have nothing to do with an internal zval and an int might be more than enough. I don't really mind but I wouldn't introduce OnUpdateInteger. I guess we should either

Re: [PHP-DEV] [PATCH] imagesavealpha()

2003-03-05 Thread Ilia A.
On March 5, 2003 12:18 am, Steven Brown wrote: I went to update the official gd library with my bug fixes so I could get them rolled back into PHP's without requiring PHP's gd diverge more, but it appears between the time PHP bundled gd and now that the gd people have fixed the most important

Re: [PHP-DEV] Modifying PHP variables in C

2003-03-05 Thread John Lim
Hi Moriyoshi Thanks for the advice! Moriyoshi Koizumi [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] You should use zval_ptr_dtor() to dispose the old value. Note the old value won't actually be freed as long as any reference to the variable is alive. -- PHP Development Mailing

[PHP-DEV] pg_lo_open and object creation... intended behavior?

2003-03-05 Thread David Brown
Hi: This is an excerpt from ext/pgsql/pgsql.c, in pg_lo_open: --- if (strchr(mode_string, 'w') == mode_string) { pgsql_mode |= INV_WRITE; create = 1; if (strchr(mode_string, '+') == mode_string+1) { pgsql_mode |= INV_READ; } } pgsql_lofp = (pgLofp *)

[PHP-DEV] Question about zend_compile

2003-03-05 Thread John Coggeshall
I'm playing around with the compiler/executor and I was wondering if someone could answer a question.. Is there any reasonable way to essentially push/pop the function table? What I'd like to do is get a function_table hash for only a single file (pesudo code below):

Re: [PHP-DEV] Question about zend_compile

2003-03-05 Thread George Schlossnagle
Look at apc. It tracks per-file function and class tables. http://apc.communityconnect.com/ (v2.0) pear/PECL/apc (v1.x) Both versions do the thing you wish for. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] FYI: PHP/threads

2003-03-05 Thread Timm Friebe
I've been playing around with the (not new) idea of introducing threads into PHP userland (maybe something to think about havin in PHP6?). What came out of it is available at [1], offering an object oriented API (in comparison to PECL/threads [2]). Threads would quite likely come in handy in the

[PHP-DEV] Re: [Zend Engine 2] FYI: PHP/threads

2003-03-05 Thread George Schlossnagle
Both of these examples could be realized using fork() or socket_select(), though the first is not portable and the latter produces unnecessary overhead. Just to nit-pick: non-blocking io is much more efficient than threads, -- PHP Development Mailing List http://www.php.net/ To unsubscribe,

[PHP-DEV] modules in c++

2003-03-05 Thread Michel M. dos Santos
Hi, I've been trying use C++ within a PHP extension with help by document in http://www.tutorbuddy.com/software/phpcpp/phpcpp/. The instructions works fine but I have problems with linking objects. The script libtool links objects with gcc and not with g++ and the

[PHP-DEV] Re: modules in c++

2003-03-05 Thread J Smith
That should still work fine, though, shouldn't it? I mean, the .so spit out should be working properly. I just tested this with a C++ extension and while gcc was used by libtool for the linking, the extension works fine. If you really want the C++ compiler to do the linking, you can open up

Re: [PHP-DEV] Re: modules in c++

2003-03-05 Thread Michel M. dos Santos
J, First, thanks by your article. My original e first problem is : PHP Warning: Unable to load dynamic library '/usr/lib/php4/20010901/biac.so' - /usr/lib/php4/20010901/biac.so: undefined symbol: endl__FR7ostream in Unknown on line 0 The use of cout

RE: [PHP-DEV] Re: modules in c++

2003-03-05 Thread Dave Viner
do you have the PHP_REQUIRE_CXX() in your config.m4? dave -Original Message- From: Michel M. dos Santos [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 12:43 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP-DEV] Re: modules in c++ J, First,

Re: [PHP-DEV] Re: modules in c++

2003-03-05 Thread Michel M. dos Santos
Yes. My config.m4: PHP_ARG_ENABLE(biac, for biac support,[ --enable-biacEnable biac support]) if test $PHP_BIAC != no ; then PHP_ADD_LIBRARY(stdc++) PHP_EXTENSION(biac,$ext_shared) PHP_REQUIRE_CXX() fi Michel M. dos Santos On Wednesday 05

RE: [PHP-DEV] Re: modules in c++

2003-03-05 Thread Dave Viner
with that config.m4, running: % phpize ./configure --enable-biac=shared make should yield this: /bin/bash dir/libtool --mode=compile g++ is that the case or not? dave -Original Message- From: Michel M. dos Santos [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 1:04 PM To:

Re: [PHP-DEV] Re: modules in c++

2003-03-05 Thread J Smith
Looks like you need to link to the standard C++ library. Try putting this in your config.m4 file: PHP_ADD_LIBRARY(stdc++) And run phpize, configure and make again. That should make gcc link with stdc++. J Michel M. Dos Santos wrote: J, First, thanks by your article. My original e

Re: [PHP-DEV] Re: modules in c++

2003-03-05 Thread J Smith
Actually, try this instead of PHP_ADD_LIBRARY(stdc++) and see if that works... PHP_ADD_LIBRARY(stdc++, 1, BIAC_SHARED_LIBADD) J Michel M. Dos Santos wrote: Yes. My config.m4: PHP_ARG_ENABLE(biac, for biac support,[ --enable-biacEnable biac support]) if test $PHP_BIAC

Re: [PHP-DEV] Re: modules in c++

2003-03-05 Thread Sascha Schumann
Please supply 1 as the 6th argument to PHP_NEW_EXTENSION. - Sascha -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Doing something with an each opcode as zend_execute() handles it

2003-03-05 Thread David Sklar
Just before zend_execute()/execute() handles each opcode in its big switch() statement, I'd like to be able to call a function and pass it the opcode (or other information from the opline. Is the best approach to reset zend_execute to a new function in the PHP_MINIT_FUNCTION() (and restore the

Re: [PHP-DEV] Doing something with an each opcode as zend_execute() handles it

2003-03-05 Thread Sterling Hughes
Just before zend_execute()/execute() handles each opcode in its big switch() statement, I'd like to be able to call a function and pass it the opcode (or other information from the opline. Is the best approach to reset zend_execute to a new function in the PHP_MINIT_FUNCTION() (and restore

RE: [PHP-DEV] Doing something with an each opcode as zend_execute() handles it

2003-03-05 Thread David Sklar
On Wednesday, March 05, 2003 5:35 PM, Sterling Hughes wrote: Just before zend_execute()/execute() handles each opcode in its big switch() statement, I'd like to be able to call a function and pass it the opcode (or other information from the opline. Is the best approach to reset zend_execute

Re: [PHP-DEV] Doing something with an each opcode as zend_execute() handles it

2003-03-05 Thread Sterling Hughes
On Wednesday, March 05, 2003 5:35 PM, Sterling Hughes wrote: Just before zend_execute()/execute() handles each opcode in its big switch() statement, I'd like to be able to call a function and pass it the opcode (or other information from the opline. Is the best approach to reset

Re: [PHP-DEV] Doing something with an each opcode as zend_execute() handles it

2003-03-05 Thread George Schlossnagle
Essentially, I want to be able to produce a sort of serialized representation of the opcodes, but as they are executed, not all in one big chunk after they are compiled. This isn't for any actually useful production code, just some debugging/messing around/exploring engine internals. There's no

RE: [PHP-DEV] Doing something with an each opcode as zend_execute() handles it

2003-03-05 Thread John Coggeshall
Look at zend_init_opcodes_handlers() and the zend_opcode_handler array.. John -Original Message- From: George Schlossnagle [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 6:10 PM To: David Sklar Cc: Sterling Hughes; [EMAIL PROTECTED] Subject: Re: [PHP-DEV] Doing something

RE: [PHP-DEV] [PATCH] imagesavealpha()

2003-03-05 Thread Steven Brown
-Original Message- From: Ilia A. [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 6:31 AM To: Steven Brown; Pierre-Alain Joye; [EMAIL PROTECTED] Subject: Re: [PHP-DEV] [PATCH] imagesavealpha() On March 5, 2003 12:18 am, Steven Brown wrote: I went to update the official

RE: [PHP-DEV] Doing something with an each opcode as zend_execute() handles it

2003-03-05 Thread David Sklar
On Wednesday, March 05, 2003 5:46 PM, Sterling Hughes wrote: Essentially, I want to be able to produce a sort of serialized representation of the opcodes, but as they are executed, not all in one big chunk after they are compiled. This isn't for any actually useful production code, just some

RE: [PHP-DEV] Doing something with an each opcode as zend_execute() handles it

2003-03-05 Thread John Coggeshall
Such as overriding the opcode handlers for each opcode? I suppose I could change what the handlers are initialized to in zend_init_opcodes_handler() so that my new handler does the serialization and then calls the regular handler. Does that make sense? Yep Int

[PHP-DEV] Resources and zend_register_list_destructors_ex

2003-03-05 Thread Dave Viner
Hi, I'm having some trouble understanding persistent versus non-persistent resources (in ZE1). Does the Zend engine call _any_ non-persistent callback dtor function for a resource at the end of a request? For example: If I register a resource type at MINIT time like so: le_mod =

Re: [PHP-DEV] php_xslt: xslt_set_encoding

2003-03-05 Thread Edin Kadribasic
You can download latest stable snapshot from snaps.php.net or wait for 4.3.2 release. Edin - Original Message - From: Michel Sahyoun [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, March 06, 2003 1:02 AM Subject: [PHP-DEV] php_xslt:

[PHP-DEV] Re: [Zend Engine 2] FYI: PHP/threads

2003-03-05 Thread Alan Knowles
Timm Friebe wrote: I've been playing around with the (not new) idea of introducing threads into PHP userland (maybe something to think about havin in PHP6?). What came out of it is available at [1], offering an object oriented API (in comparison to PECL/threads [2]). -one of the reasons to not

[PHP-DEV] php_xslt: xslt_set_encoding

2003-03-05 Thread Michel Sahyoun
I have downloaded the 4.3.1 windows binaries zip package and it doesn't seem to have xslt_set_encoding() enabled. Can anyone confirm this? And short of getting the sources and recompiling PHP, is there another binary distribution that would have xslt_set_encoding() enabled? Thanks, Michel --