Re: [PHP-DEV] 1.5Gb PHP process, lots of swap

2005-10-28 Thread Sebastian
Something like the variables produced by perl's my() operator so that a variable is lexically scoped along with block-level scoping could help earlier detection of when it's possible to release a variable. This wouldn't solve leaks, but it might help prevent some On 10/28/05, Andi Gutmans <[EMAIL

[PHP-DEV] CVS Account Request: roast

2005-10-28 Thread ZhangLibing
Hello Sir,I am a PHP Programer at china.I require a CVS account to go shares my DLL which designed by Microsoft Visual C++;Those DLL can be used to extend PHP for corporation applications. Thanks! -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/

Re: [PHP-DEV] what happened to that new isset() like language

2005-10-28 Thread Greg Beaver
James Crumpton wrote: > Evaluating an idea based on it's syntactic similarities to other > languages is complete and utter nonsense. It has nothing to with being > like language Xyz. It has to do with familiarity to language constructs. > One already understands the idea of 'this || that'. It's cer

Re: [PHP-DEV] 1.5Gb PHP process, lots of swap

2005-10-28 Thread Andi Gutmans
What do you mean? At 06:50 PM 10/28/2005, Sebastian wrote: Lexical variables would be nice. On 10/28/05, Andi Gutmans <[EMAIL PROTECTED]> wrote: > Hi Cristiano, > > Alex sent a patch to the list a while ago which forces the memory > allocator to return memory to the system. However, in your cas

[PHP-DEV] Follow the object constructor chain ... options

2005-10-28 Thread Bob Silva
What would be the suggested method of simulating parent::__construct in C-level objects? I looked through the source and could find no examples to draw from. Since my base object is the foundation of my extension, its constructor has to be called on each derived object creation. I have a f

Re: [PHP-DEV] what happened to that new isset() like language

2005-10-28 Thread James Crumpton
Evaluating an idea based on it's syntactic similarities to other languages is complete and utter nonsense. It has nothing to with being like language Xyz. It has to do with familiarity to language constructs. One already understands the idea of 'this || that'. It's certainly doesn't take a stret

Re: [PHP-DEV] 1.5Gb PHP process, lots of swap

2005-10-28 Thread Sebastian
Lexical variables would be nice. On 10/28/05, Andi Gutmans <[EMAIL PROTECTED]> wrote: > Hi Cristiano, > > Alex sent a patch to the list a while ago which forces the memory > allocator to return memory to the system. However, in your case, I > think you might be just having PHP variables "leaking".

Re: [PHP-DEV] what happened to that new isset() like language

2005-10-28 Thread Sebastian
Wow, it'll be just like perl! this is so great. On 10/28/05, James Crumpton <[EMAIL PROTECTED]> wrote: > Andi Gutmans wrote: > > I don't think it's a matter of giving the engine a try. I think we first > need > > to make a decision what the best way to go is and then we can discuss > > impleme

Re: [PHP-DEV] what happened to that new isset() like language

2005-10-28 Thread James Crumpton
Andi Gutmans wrote: > I don't think it's a matter of giving the engine a try. I think we first need > to make a decision what the best way to go is and then we can discuss > implementation if/what is possible. Once 5.0.0 is out I'm going to have more > time look into this. What's the word on this

Re: [PHP-DEV] Re: PHP 5.1.0RC4 Released

2005-10-28 Thread Greg Beaver
Marcus Bointon wrote: > make install-pear works fine for me on OSX 10.4.2. > > I suffer from this bug: http://bugs.php.net/bug.php?id=32301 > > Though I don't have anything more to add to it - pear install has been > unusable for me on OS X for the last couple of years because of this. > You c

Re: [PHP-DEV] Internal class, read_property() and type == BP_VAR_W

2005-10-28 Thread Marcus Boerger
Hello Michael, actually your class could have another object with get/set handlers implemented, nothing more. This could be mapped through the handlers to your int i. marcus Friday, October 28, 2005, 10:44:42 PM, you wrote: > Sara Golemon wrote: >>> Would you say it's possible that one can m

Re: [PHP-DEV] Internal class, read_property() and type == BP_VAR_W

2005-10-28 Thread Michael Wallner
Sara Golemon wrote: Would you say it's possible that one can maintain i as class property with write access through references? Nope, because PHP variables are loose typed. Say you *did* have some way to bind my_obj->i to a userspace variable (e.g.: $i =& $this->i; ). The next instruction c

Re: [PHP-DEV] Re: PHP 5.1.0RC4 Released

2005-10-28 Thread Marcus Bointon
On 28 Oct 2005, at 18:29, Greg Beaver wrote: I have been unable to verify (i.e. works for me) http:// bugs.php.net/34955 This is an oddity in a PEAR install apparently on Mac OS X. It works fine on gentoo linux in my tests. Can others try out the make install-pear to see if the problem exi

Re: [PHP-DEV] Internal class, read_property() and type == BP_VAR_W

2005-10-28 Thread Sara Golemon
> Hm... maybe I made not a good start with my question, let me ty again, please: > > typedef struct { > zend_object zo; > int i; > } my_obj; > > Would you say it's possible that one can maintain i as class > property with write access through references? > Nope, because PHP variables are loose type

Re: [PHP-DEV] 1.5Gb PHP process, lots of swap

2005-10-28 Thread Andi Gutmans
Hi Cristiano, Alex sent a patch to the list a while ago which forces the memory allocator to return memory to the system. However, in your case, I think you might be just having PHP variables "leaking". Can you try and identify where this info is sitting and try and unset it? It's important t

Re: [PHP-DEV] HEAD broken on Win32

2005-10-28 Thread Sebastian Bergmann
Sebastian Bergmann schrieb: > c:\home\php\php-6.0\ext\standard\string.c(1980): error C2375: > 'php_u_strspn': redefinition; different linkage > > c:\home\php\php-6.0\ext\standard\string.c(2017): error C2375: > 'php_u_strcspn': redefinition; different linkage Frank's last commit fixed this, t

[PHP-DEV] 1.5Gb PHP process, lots of swap

2005-10-28 Thread Cristiano Duarte
Is there any way to force a PHP CLI application to free the memory it took from the system ? I mean, is there any PHP userland or PHP internal functional call that could *really* free 'the memory allocated by a variable' or 'the memory allocated but currently not used and waiting for the script end

[PHP-DEV] HEAD broken on Win32

2005-10-28 Thread Sebastian Bergmann
c:\home\php\php-6.0\ext\standard\string.c(1980): error C2375: 'php_u_strspn': redefinition; different linkage c:\home\php\php-6.0\ext\standard\string.c(2017): error C2375: 'php_u_strcspn': redefinition; different linkage -- Sebastian Bergmann http://www.sebastian-bergman

Re: [PHP-DEV] Accept null type hint in C

2005-10-28 Thread Marcus Boerger
Hello Bob, there is also an *_ex() version of the parsing function that can be made not emitting a warning on type missmatch. That way you can have a first one look for the object and a second one look for other types. But we do not support checking for null. So in your case that would be checki

Re: [PHP-DEV] Internal class, read_property() and type == BP_VAR_W

2005-10-28 Thread Michael Wallner
Dmitry Stogov wrote: read_property(BP_VAR_W) will never work for all cases. Probably you can return proxy object with get() and set() callbacks, but I am not sure if it will work for references too. So if you can return zval** you should use get_property_ptr_ptr(). Hm... maybe I made not a goo

[PHP-DEV] Re: PHP 5.1.0RC4 Released

2005-10-28 Thread Greg Beaver
Ilia Alshanetsky wrote: > The fourth and final release candidate of PHP 5.1.0 is now available for > testing. You can download the source packages from here: I have been unable to verify (i.e. works for me) http://bugs.php.net/34955 This is an oddity in a PEAR install apparently on Mac OS X. It

[PHP-DEV] PHP 5.1.0RC4 Released

2005-10-28 Thread Ilia Alshanetsky
The fourth and final release candidate of PHP 5.1.0 is now available for testing. You can download the source packages from here: http://downloads.php.net/ilia/php-5.1.0RC4.tar.bz2 4afd68f8e4fe532cea83f30bd2ff26f5 http://downloads.php.net/ilia/php-5.1.0RC4.tar.gz 679a0d12b8cb00c55d56621ea9609013

[PHP-DEV] php.ini-recommended patch

2005-10-28 Thread Marcus Bointon
While rebuilding my php.ini, I noticed quite a few spelling mistakes in the current version, so I enclose a patch to fix the obvious ones (against php5-200510281430/php.ini-recommended). I worked on - recommended instead of -dist as I suspect that's the one which will see more use - is that

RE: [PHP-DEV] Internal class, read_property() and type == BP_VAR_W

2005-10-28 Thread Dmitry Stogov
read_property(BP_VAR_W) will never work for all cases. Probably you can return proxy object with get() and set() callbacks, but I am not sure if it will work for references too. So if you can return zval** you should use get_property_ptr_ptr(). Dmitry. > -Original Message- > From: Michae

Re: [PHP-DEV] Internal class, read_property() and type == BP_VAR_W

2005-10-28 Thread Michael Wallner
Hi Dmitry Stogov, you wrote: > Hi Michael, > > You should define get_property_ptr_ptr() callback to support such > assignments. Yeah, I looked at that, but what do I gain? get_property_ptr_ptr() will be used for both described cases and instead of returning a zval* I'd have to return a zval**,

RE: [PHP-DEV] Internal class, read_property() and type == BP_VAR_W

2005-10-28 Thread Dmitry Stogov
Hi Michael, You should define get_property_ptr_ptr() callback to support such assignments. Thanks. Dmitry. > -Original Message- > From: Michael Wallner [mailto:[EMAIL PROTECTED] > Sent: Friday, October 28, 2005 7:06 PM > To: internals@lists.php.net > Subject: [PHP-DEV] Internal class, r

[PHP-DEV] Internal class, read_property() and type == BP_VAR_W

2005-10-28 Thread Michael Wallner
Hi, I'm facing an issue I don't know how to overcome. Short story: I've an object which properties are connected to the internal struct whith get_property() and write_property() object handlers. Now if BP_VAR_W is used to access a property with read_prop() the following works fine: // $

Re: [PHP-DEV] No error output?

2005-10-28 Thread Marcus Bointon
On 28 Oct 2005, at 14:37, Jochem Maas wrote: I have problems like this on a regular basis in big/complex (well by my standards anyway) codebases that have heavy php5 oo in them. no errors _anywhere_ if I have a parse error or a require_once statement fails, I havbe had the problem since php

[PHP-DEV] Re: Are there plans to support Mysql 5 soon?

2005-10-28 Thread Holografix
Hi Sorry to bother all of you with silly questions I kept php.ini and my.cnf, deleted every single presence of php 5.1/mysql 5 files. Downloaded last snapshot, compile with same configure options and everything is working fine. I can't figure out my mistake. I apologize one more time. best rega

Re: [PHP-DEV] No error output?

2005-10-28 Thread Jochem Maas
Mike Hall wrote: Every developer at my company has experience this problem too, at one point or another. We get it with Apache 1.3 and PHP 5.x. We've been unable to figure it out. I thought I had it tied down to the gzip output compression at one stage. But then it suddenly started working ok

Re: [PHP-DEV] No error output?

2005-10-28 Thread Mike Hall
Every developer at my company has experience this problem too, at one point or another. We get it with Apache 1.3 and PHP 5.x. We've been unable to figure it out. I thought I had it tied down to the gzip output compression at one stage. But then it suddenly started working okay and I couldn't g

[PHP-DEV] No error output?

2005-10-28 Thread Marcus Bointon
I'm running a recent snap of 5.1 with apache 2.0.54 (from fink) and MySQL 5.0.15 on OS X 10.4.2. For the last few days I've noticed that I'm getting no error messages out at all, neither to the browser nor to the server log. I have display_errors, log_errors and log_startup_errors set to On

Re[2]: [PHP-DEV] Re[2]: PHP 4 win build system questions

2005-10-28 Thread anatoly techtonik
||*()*||[\..konnichi wa, ogenki desu ka, Antony../] >> I might be compenent, but it was a waste of time. I'm not an OOP >> programmer and I don't like PHP 5 yet. AD> I could never understand people saying that PHP5 is about OOP. AD> It's like saying that kernel 2.6 is about desktop. You will