[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 = zend_reg

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

2003-03-05 Thread Dave Viner
2003 1:04 PM To: Dave Viner; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP-DEV] Re: modules in c++ Yes. My config.m4: PHP_ARG_ENABLE(biac, for biac support,[ --enable-biacEnable biac support]) if test "$PHP_BIAC" != "no" ; then PHP_AD

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, tha

[PHP-DEV] using VC++ to compile PHP extensions

2003-02-27 Thread Dave Viner
Hi, I've just completed some local php extensions using VC++. Here are some notes that might help others when creating php extensions using VC++. By default, Visual C++ will add classes with a .cpp extension. To make this work properly, you must either wrap the C specific sections, or fo

RE: [PHP-DEV] Re: [PHP] Threading

2003-02-27 Thread Dave Viner
i believe that win32 actually does support semaphores. see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/bas e/using_synchronization.asp for details on synchronization issues inside win32 (including mutex which is what i think you're looking for). or if you don't want

RE: [PHP-DEV] Re: [PHP] Threading

2003-02-27 Thread Dave Viner
would semaphores provide the "mutual exclusion zone" you need? dave -Original Message- From: Braulio José Solano Rojas [mailto:[EMAIL PROTECTED] Sent: Thursday, February 27, 2003 8:01 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP-DEV] Re: [PHP] Threading Hi! "Rasmus Ler

[PHP-DEV] PHP extension with C++

2003-02-19 Thread Dave Viner
Hi, I'm trying to compile a PHP extension that uses C+ on windows, and I keep getting this error message: C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream(373) : error C2491: 'endl' : definition of dllimport function not allowed C:\Program Files\Microsoft Visual Studio\VC98\IN

[PHP-DEV] PHP extensions and C++

2003-02-18 Thread Dave Viner
Hi, I'm trying to write a simple PHP extension that will wrap a C++ class. I have a test C++ program which exercises the class and works properly. I am trying to make the PHP extension code work, but I keep running into this error in VC++: DataStore.lib(FileSystemDataStore.obj) : error L

[PHP-DEV] adding class members in C

2003-02-12 Thread Dave Viner
Hi, I'm trying to write a class as a PHP C extension. I want to add a member variable to class declaration time. I believe this is possible by adding to the zend_class_entry's default_properties HashTable. My attempts so far have resulted in apache core dumps. My code for PHP_MINIT_FUNC

RE: [PHP-DEV] building ext/dba on win32

2003-01-07 Thread Dave Viner
:02 PM To: Dave Viner; [EMAIL PROTECTED] Cc: Php-Dev@lists. php. net Subject: Re: [PHP-DEV] building ext/dba on win32 http://www.sleepycat.com/update/index.html 3.3.11 works fine for me, and is also the version Edin was using to build php_dba.dll last I know of.. - Original Message - From

[PHP-DEV] building ext/dba on win32

2003-01-07 Thread Dave Viner
Hi, I'm having trouble building the dba extension on win32. I get these errors: D:\php\php4\ext\dba\dba_db3.c(89) : error C2039: 'set_errcall' : is not a member of '__db' D:\PHP\PHP-WIN32BUILD\INCLUDE\db.h(397) : see declaration of '__db' D:\php\php4\ext\dba\dba_db3.c(90) : error

RE: [PHP-DEV] building ext/dba on win32

2003-01-07 Thread Dave Viner
ownload the older version (I can't find it on sleepycat). thanks for your help. dave -Original Message- From: Marcus Borger [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 11:55 AM To: Dave Viner Cc: Php-Dev@lists. php. net Subject: Re: [PHP-DEV] building ext/dba on win32

RE: [PHP-DEV] What headers/libs does Win32 Snaps build use?

2003-01-07 Thread Dave Viner
this sounds to me like a good idea. at the very least, i don't see why we wouldn't change the zlibstat.lib to be the zlib.lib that is built from the zlib CVS module. dave -Original Message- From: Michael Sisolak [mailto:[EMAIL PROTECTED]] Sent: Monday, January 06, 2003 6:13 AM To: [EMAI

RE: [PHP-DEV] php4apache on win32 regex problem?

2002-11-13 Thread Dave Viner
ir "" # ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "APACHEPHP4_EXPORTS" /YX /FD /c -# ADD CPP /nologo /MD /W3 /GX /O2 /I "...\..\include" /I "..\..\win32"

RE: [PHP-DEV] php4apache on win32 regex problem?

2002-11-13 Thread Dave Viner
e. i realize that the standard snap build doesn't have this problem, but i can't see why I have this problem. Can anyone offer advice on this? Or is there a win32 buildmeister that I could talk to off the list for help ? dave -Original Message----- From: Dave Viner [mailto:dviner

[PHP-DEV] php4apache on win32 regex problem?

2002-11-12 Thread Dave Viner
has anyone seen this error on win32 php4apache? Configuration: php4apache - Win32 Release_TS Compiling... mod_php4.c ..\..\main\php_regex.h(39) : fatal error C1083: Cannot open include file: 'regex.h': No such file or directory php_apache.c ..\..\main\php_re

RE: [PHP-DEV] bison error [was: PHP 4.3.0]

2002-11-11 Thread Dave Viner
well, i downgraded bison to 1.35, and it works fine. no warnings, no errors. not sure what's going on with that, but at least i can build again. if a bison or win32 expert wants more info, i'm happy to work towards some resolution. dave -Original Message----- From:

RE: [PHP-DEV] bison error [was: PHP 4.3.0]

2002-11-11 Thread Dave Viner
i assume this means that the problem i'm having is not reproducible. if so, do you have any thoughts on what i can do to fix my build ? thanks dave viner -Original Message- From: Edin Kadribasic [mailto:edink@;proventum.net] Sent: Monday, November 11, 2002 5:04 PM To: Dave Vin

RE: [PHP-DEV] bison error [was: PHP 4.3.0]

2002-11-11 Thread Dave Viner
is anyone out there building php source from cvs using win32 ? if so, what version of bison are you using ? and can you try using 1.75 ? dave -Original Message- From: Rasmus Lerdorf [mailto:rasmus@;php.net] Sent: Monday, November 11, 2002 11:28 AM To: Dave Viner Cc: [EMAIL PROTECTED

RE: [PHP-DEV] bison error [was: PHP 4.3.0]

2002-11-11 Thread Dave Viner
is that on win32? or linux ? -Original Message- From: Rasmus Lerdorf [mailto:rasmus@;php.net] Sent: Friday, November 08, 2002 5:01 PM To: Dave Viner Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DEV] bison error [was: PHP 4.3.0] I'm not seeing any problems with bison-1.75 here. On F

[PHP-DEV] bison error [was: PHP 4.3.0]

2002-11-08 Thread Dave Viner
here's the message i posted to [EMAIL PROTECTED] for more help in the bison problem. http://www.geocrawler.com/lists/3/GNU/350/0/10107563/ I'm not good enough with bison to understand why it produces no error message and yet does not produce a .c file. even reducing the bison command to its simp

RE: [PHP-DEV] compiling on windows vc++ bison error ?

2002-11-06 Thread Dave Viner
also, can you let me know what version of bison you are using ? thanks dave -Original Message- From: Dave Viner [mailto:dviner@;yahoo-inc.com] Sent: Wednesday, November 06, 2002 10:15 AM To: [EMAIL PROTECTED] Cc: Php-Dev@lists. php. net Subject: RE: [PHP-DEV] compiling on windows vc

RE: [PHP-DEV] compiling on windows vc++ bison error ?

2002-11-06 Thread Dave Viner
c zend_opcode.c zend_operators.c zend_ptr_stack.c zend_qsort.c zend_sprintf.c zend_stack.c zend_variables.c Error executing cl.exe. ZendTS.lib - 7 error(s), 1 warning(s) -Original Message- From: Maxim Maletsky [mailto:maxim@;php.net] Sent: Wednesday, November 06, 2002 10:17 AM To: Dave Viner Cc:

[PHP-DEV] compiling on windows vc++ bison error ?

2002-11-06 Thread Dave Viner
Hi, I'm having difficulty compiling the PHP source code on Win2K with VC++ 6.0. I've followed the instructions on the website, but I keep getting errors compiling the ZendTS project. It appears that bison is not actually generating the zend_language_parser.{h,c} at all. However, from the