Re: [PHP-DEV] [patch] Zend/zend_compile.c - bug #29446 (PHP 5 allows class constants to be overriden)

2004-09-09 Thread Antony Dovgal
On Fri, 10 Sep 2004 08:05:42 +0100 "Steph" <[EMAIL PROTECTED]> wrote: > You're after CVS access to ZE 2, aren't you? :) no. I don't have karma for ZE and I don't need it at all, really. I just want my patches to be overlooked and accepted by some more experienced person (is it's possible). --

Re: [PHP-DEV] [patch] Zend/zend_objects_API.c - bug #29980 (segfault while executing __destruct())

2004-09-09 Thread Antony Dovgal
On Thu, 09 Sep 2004 23:15:08 -0700 Andi Gutmans <[EMAIL PROTECTED]> wrote: > I think this makes sense because PHP could be in an unstable state. > Think EG(exit_status) covers all possible situations? No time to check > now how it differs from CG(unclean_shutdown) which is most often used. Well,

Re: [PHP-DEV] [patch] Zend/zend_objects_API.c - bug #29980 (segfault while executing __destruct())

2004-09-09 Thread Andi Gutmans
I think this makes sense because PHP could be in an unstable state. Think EG(exit_status) covers all possible situations? No time to check now how it differs from CG(unclean_shutdown) which is most often used. Andi At 09:57 AM 9/10/2004 +0400, Antony Dovgal wrote: And the last one, the most ques

Re: [PHP-DEV] [patch] Zend/zend_compile.c - bug #29446 (PHP 5 allows class constants to be overriden)

2004-09-09 Thread Andi Gutmans
Commited. Thanks. At 09:57 AM 9/10/2004 +0400, Antony Dovgal wrote: Yet another patch for ZE. This one fixes rather strange problem - ZE allows multiple declarations of the same class constant. It could be a minor BC break, but I'm sure it's a bug. -- Wbr, Antony Dovgal aka tony2001 [EMAIL PROTEC

[PHP-DEV] [patch] Zend/zend_object_handlers.c - bug #29378 (foreach() doesn't work with arrays returned by __get)

2004-09-09 Thread Antony Dovgal
Another one patch for ZE. This one fixes the bug #29378. It looks like this bug was done intentionally (I'm not sure, just an assumption), so zend_std_get_property_ptr_ptr() doesn't call __get. Please look at the patch fro details. -- Wbr, Antony Dovgal aka tony2001 [EMAIL PROTECTED] || [EMAI

[PHP-DEV] [patch] Zend/zend_objects_API.c - bug #29980 (segfault while executing __destruct())

2004-09-09 Thread Antony Dovgal
And the last one, the most questionable patch. ATM ZE2 calls destructor at the end of the request and no matter is there were a fatal error (which should probably stop executing the script). In some cases it leads to nasty segfaults (me and report's author can reproduce it, but others can't. wei

[PHP-DEV] [patch] Zend/zend_compile.c - bug #29446 (PHP 5 allows class constants to be overriden)

2004-09-09 Thread Antony Dovgal
Yet another patch for ZE. This one fixes rather strange problem - ZE allows multiple declarations of the same class constant. It could be a minor BC break, but I'm sure it's a bug. -- Wbr, Antony Dovgal aka tony2001 [EMAIL PROTECTED] || [EMAIL PROTECTED] Index: zend_compile.c ==

[PHP-DEV] [patch] Zend/zend_execute.c - bug #27290 (warning msg on missing function argument should mention file/line of caller too)

2004-09-09 Thread Antony Dovgal
Hi all. The attached patch fixes bug #27290 (which could be considered as feature request). The patch proposes to look at the previous op_code to get real line number & filename where the fuction was called. -- Wbr, Antony Dovgal aka tony2001 [EMAIL PROTECTED] || [EMAIL PROTECTED] Index: zend_e

Re: [PHP-DEV] casting php5 objects

2004-09-09 Thread Curt Zirzow
* Thus wrote Andi Gutmans: > Please check the archives to see why we don't support object casts to > integers/doubles. > Hint: The object id is not unique. Yeah i checked there, I always get frustrated with to many results over there :) I'll research that again now that I know there has to be som

Re: [PHP-DEV] casting php5 objects

2004-09-09 Thread Andi Gutmans
Please check the archives to see why we don't support object casts to integers/doubles. Hint: The object id is not unique. Andi At 03:45 AM 9/10/2004 +, Curt Zirzow wrote: In reference to bug #29029 (http://bugs.php.net/29029): Current casting object behaviour: int - not able to cast

[PHP-DEV] casting php5 objects

2004-09-09 Thread Curt Zirzow
In reference to bug #29029 (http://bugs.php.net/29029): Current casting object behaviour: int - not able to cast dobule - notice thrown, returns 1.0 null - will return null bool - returns 1 (from result of double) string - user __toString() if applicable or 'Object' Be

Re: [PHP-DEV] PHP's error handler: xmlrpc_errors, entity encoding, and handler chaining

2004-09-09 Thread Rasmus Lerdorf
On Thu, 9 Sep 2004, Sara Golemon wrote: > One last thing: error handlers can be pushed/popped on and off of a stack > using set_error_handler() and restore_error_handler(), and that's fine, but > with the recent addition of the ability to fallback on the default error > handler by returning an exp

Re: [PHP-DEV] Re: Really odd PHP problem... different platform

2004-09-09 Thread Wez Furlong
The .pdb files contain the debugging info; they should be generated as part of the debug build. Dans tips on reading the minidump are handy, but don't tell you how to get hold of one for an application crash--they cover only a kernel crash (BSOD). You'll need to do some googling to try and find

Re: [PHP-DEV] Re: Really odd PHP problem... different platform

2004-09-09 Thread Dietrich Ayala
excellent tips, thx dan and wez. do i need to do add any special options to the debug build configuration to generate the debug symbols? also, what is the release_tsdbg build configuration? a release build w/ debug symbols? i'll check out the minidump idea. that'd be ideal, as the client is rem

[PHP-DEV] PHP's error handler: xmlrpc_errors, entity encoding, and handler chaining

2004-09-09 Thread Sara Golemon
Going through some error handling code, I noticed that while Plaintext and HTML errors use the error_prepend_string and error_append_string php.ini directives in the construction of their error messages, XML errors do not. Any particular reason for that? I also notice that there's no htmlspecialch

Re: [PHP-DEV] Re: Really odd PHP problem... different platform

2004-09-09 Thread Daniel Convissor
On Thu, Sep 09, 2004 at 07:10:51PM +0100, Wez Furlong wrote: > Hope that helps (and if you find out about the minidump thing, > please share the knowledge ;-) This may be of assistance... Get the Windows Debugger: http://www.microsoft.com/ddk/debugging/ Here's a tip sheet on the process:

Re: [PHP-DEV] Fwd: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / README.ZEND_VM

2004-09-09 Thread Andi Gutmans
At 02:04 PM 9/9/2004 -0400, John Coggeshall wrote: Personally I would like to see the hooks for op-codes stay in place, I think they offer a lot of possibilities for extensions. Andi, what do you mean "create the handler execution architecture"? I'm a little confused to what you are referring to.

Re: [PHP-DEV] Re: Really odd PHP problem... different platform

2004-09-09 Thread Wez Furlong
I'd recommend the Microsoft "Debugging Tools for Windows" to be able to do very similar things to gdb under windows; it's free, not as bloated as VC++/VS.Net IDE debugger and comes in console and GUI flavours. Caveat emptor: - you need to understand how to debug - you want a debug build of php wit

Re: [PHP-DEV] Fwd: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / README.ZEND_VM

2004-09-09 Thread John Coggeshall
Personally I would like to see the hooks for op-codes stay in place, I think they offer a lot of possibilities for extensions. Andi, what do you mean "create the handler execution architecture"? I'm a little confused to what you are referring to. John PS -- I hated the switch() method ;) On Th

RE: [PHP-DEV] SOAP's __call

2004-09-09 Thread Dmitry Stogov
Hi Marcus, May be it make sence, but I am not sure with you. At first, if you think __call()/__get()/__set() mast conform to uniform prototypes and extension will define methods with another prototypes then PHP should not work with such extensions. Warning is very bed decision for binary extensio

Re: [PHP-DEV] info needed regarding TSRM thread local storage

2004-09-09 Thread Andi Gutmans
At 04:30 PM 9/9/2004 +0200, Andrey Hristov wrote: Hi, probably MBO_0 stands for MarcusBOerger_0 . I am not sure whether this was somewehere in the coding standards document, but this means that the programmer has commented the code by using the preprocessor. The programmer has to put his name an

[PHP-DEV] Fwd: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / README.ZEND_VM

2004-09-09 Thread Andi Gutmans
FYI, some more information about the proposed changes. It's really not critical, because I think performance is much more dependant on how the application is written, the database queries and so on, but it's quite a nice system which gives us both opcode specialization and other execution altern

Re: [PHP-DEV] clarification needed regarding tests\lang\bug22510.phpt and tests\lang\bug22231.phpt

2004-09-09 Thread Marcus Boerger
Hello Kamesh, Thursday, September 9, 2004, 6:10:12 PM, you wrote: > Hi All, > Both these test cases expect strict standards but don't have --INI-- > header to have the error_reporting to 2048 or E_STRICT. > Because of that these testcases fails in local build. > Am I missing something. > If I r

Re: [PHP-DEV] SOAP's __call

2004-09-09 Thread Marcus Boerger
Hello Dmitry, Thursday, September 9, 2004, 5:59:11 PM, you wrote: > Hi Marcus, > Can you explain for what reason you changed prototype of the > SoapClient::__call? > This broke receiving of SOAP headers. __call() is an engine feature that requires either three (PHP 4) or exactly 2 (PHP 5) param

Re: [PHP-DEV] RE: SOAP's ctor's

2004-09-09 Thread Marcus Boerger
Hello Dmitry, Thursday, September 9, 2004, 6:26:42 PM, you wrote: > Hi Marcus, > May be your patch make sense. > But what is the difference between SoapServer::SaopServer and > SoapServer::__construct? > For me, they are equivalent. __construct is the PHP 5 way whereas using the class name (PHP

Re: [PHP-DEV] info needed regarding TSRM thread local storage

2004-09-09 Thread Marcus Boerger
Hello Kamesh, Thursday, September 9, 2004, 6:00:38 PM, you wrote: > Hi Marcus, > That is fine. > The leak of 2,46,888 I was getting when I had ldap, mysql and xml > extension enabled. > After Disabling them and without MBO_0 I had a leak of 87744 bytes. > After Disabling them and with MBO_0 I had

[PHP-DEV] RE: SOAP's ctor's

2004-09-09 Thread Dmitry Stogov
Hi Marcus, May be your patch make sense. But what is the difference between SoapServer::SaopServer and SoapServer::__construct? For me, they are equivalent. Thanks. Dmitry. > -Original Message- > From: Marcus Boerger [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 09, 2004 14:22

[PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.h zend_exceptions.c zend_execute.c zend_execute.h zend_execute_API.c zend_opcode.c zend_vm.h zend_vm_handlers.h zend_vm_spec.h

2004-09-09 Thread Andi Gutmans
At 10:34 AM 9/9/2004 +0200, Derick Rethans wrote: On Wed, 8 Sep 2004, Sterling Hughes wrote: > > - Warning: Things might break so keep us posted on how things are going. > > (Dmitry, Andi) execute_internal changed -> breaks Xdebug: (gdb) run run-tests.php Starting program: /usr/local/bin/ph

[PHP-DEV] clarification needed regarding tests\lang\bug22510.phpt and tests\lang\bug22231.phpt

2004-09-09 Thread Kamesh Jayachandran
Hi All, Both these test cases expect strict standards but don't have --INI-- header to have the error_reporting to 2048 or E_STRICT. Because of that these testcases fails in local build. Am I missing something. If I remember correctly from run_tests2.php passes -d error_reporting=2047 only to all

Re: [PHP-DEV] Fwd: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.h zend_exceptions.c zend_execute.c zend_execute.h zend_execute_API.c zend_opcode.c zend_vm.h zend_vm_handlers.h zend_vm_spec.h

2004-09-09 Thread Andi Gutmans
Don't quite understand the question. How is this different from PHP 4? This patch improves performance and is not much different from the switch() we have in PHP 4. Andi At 11:26 PM 9/8/2004 -0700, Sterling Hughes wrote: this is actually a relevant discussion for internals... -- Forwarde

Re: [PHP-DEV] info needed regarding TSRM thread local storage

2004-09-09 Thread Kamesh Jayachandran
Hi Marcus, That is fine. The leak of 2,46,888 I was getting when I had ldap, mysql and xml extension enabled. After Disabling them and without MBO_0 I had a leak of 87744 bytes. After Disabling them and with MBO_0 I had a leak of 51,912 bytes. Anyway this figures are as given by NetWare System Cons

RE: [PHP-DEV] SOAP's __call

2004-09-09 Thread Dmitry Stogov
Hi Marcus, Can you explain for what reason you changed prototype of the SoapClient::__call? This broke receiving of SOAP headers. Dmitry. > -Original Message- > From: Marcus Boerger [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 09, 2004 14:22 > To: Dmitry Stogov; [EMAIL PROTECTE

[PHP-DEV] Re: info needed regarding TSRM thread local storage

2004-09-09 Thread l0t3k
"Kamesh Jayachandran" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi All, > what this MBO_0 mean? cvs convention around these parts. rather than #ifdef 0, the person doing the #ifdef uses his/her cvs user name appended with "_0". in this case the guilty party appears to be Marcus.

Re: [PHP-DEV] info needed regarding TSRM thread local storage

2004-09-09 Thread Marcus Boerger
Hello Kamesh, Thursday, September 9, 2004, 4:37:24 PM, you wrote: > Thanks Andrey. > I have Apache with worker thread mpm configured. > With this MBO_0 macro not defined I get a memory leak of 2,46,888 bytes. > With this MBO_0 macro defined I get a memory leak of 51,912 bytes. > If I look at the

Re: [PHP-DEV] info needed regarding TSRM thread local storage

2004-09-09 Thread Kamesh Jayachandran
Thanks Andrey. I have Apache with worker thread mpm configured. With this MBO_0 macro not defined I get a memory leak of 2,46,888 bytes. With this MBO_0 macro defined I get a memory leak of 51,912 bytes. If I look at the code also it seems that dtor of the resources are called only if MBO_0 macro i

Re: [PHP-DEV] info needed regarding TSRM thread local storage

2004-09-09 Thread Andrey Hristov
Hi, probably MBO_0 stands for MarcusBOerger_0 . I am not sure whether this was somewehere in the coding standards document, but this means that the programmer has commented the code by using the preprocessor. The programmer has to put his name and a suffix _0 . Usually code commented this way is

[PHP-DEV] ext/imap oddity on Win32

2004-09-09 Thread Michael Wallner
Hi, may I kindly ask for some advice to an odd behaviour of ext/imap on Win32? I'm experiencing a connection delay of about 5 seconds when I try to establish an IMAP connection from windows to an IMAP server running on linux. You can find some traces here: http://s1-iw.iworks.at/ext.imap

[PHP-DEV] Re: SOAP's ctor's

2004-09-09 Thread Ron Korving
Didn't Dmitry fix this a long time ago? My SOAP constructors work fine with __construct() Ron "Marcus Boerger" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > Hello Dmitry, > > does anything speak against changing soap's ctor's to > __construct which is the PHP 5 way of doing th

[PHP-DEV] SOAP's ctor's

2004-09-09 Thread Marcus Boerger
Hello Dmitry, does anything speak against changing soap's ctor's to __construct which is the PHP 5 way of doing things? Patch is attached. -- Best regards, MarcusIndex: ext/soap/soap.c === RCS file: /repository/php-src/ext/soap/s

[PHP-DEV] info needed regarding TSRM thread local storage

2004-09-09 Thread Kamesh Jayachandran
Hi All, what this MBO_0 mean? I could see the MBO_0 ifdefs removed in 1.62 version of TSRM.c whether this change has got anything to do with memory leak fix. I could see 246888 bytes of leak for each thread. Even the simple script causes 60 bytes of leak. Where and when the thread local storage i

Re: [PHP-DEV] Info needed

2004-09-09 Thread Kamesh Jayachandran
Hi Derick, Just one more reminder to apply my patches for NetWare port. With regards Kamesh Jayachandran On Fri, 13 Aug 2004 01:10:56 -0700, "Kamesh Jayachandran" <[EMAIL PROTECTED]> said: > Hi Derick, > Just a remainder to apply my patches for NetWare port. > > With regards > Kamesh Jayachandra

[PHP-DEV] Win32 sendmail.c doesn't respect DST

2004-09-09 Thread Carter, John
Hi, (Long time lurker, first time poster). *Windows only* 4.3.9rc2 sendmail.c sets the date header if you don't supply one, unfortunately it doesn't respect DST: I'm in the UK in daylight savings time (i.e. GMT+1) So the time is 09:50, i.e. 09:50 GMT +0100 (08:50 GMT) The current mail header

Re: [PHP-DEV] __set __get __call in internal class

2004-09-09 Thread Marcus Boerger
Hello Frédéric, first of all never rply to another topic with a new one that confuses our mail clients. Thursday, September 9, 2004, 2:05:11 AM, you wrote: > hi all, > 1) > i have to implement __set and __get methods in internal class but, actually, > methods declared in the class function e

[PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.h zend_exceptions.c zend_execute.c zend_execute.h zend_execute_API.c zend_opcode.c zend_vm.h zend_vm_handlers.h zend_vm_spec.h

2004-09-09 Thread Derick Rethans
On Wed, 8 Sep 2004, Sterling Hughes wrote: > > - Warning: Things might break so keep us posted on how things are going. > > (Dmitry, Andi) execute_internal changed -> breaks Xdebug: (gdb) run run-tests.php Starting program: /usr/local/bin/php run-tests.php [Thread debugging using libthread_