Re: [PHP-DEV] Native Singleton Implementation

2007-03-05 Thread Gregory Beaver
Peter Hodge wrote: > You should just need to: > - add T_SINGLETON to the parser. > - add an is_singleton flag for class definitions, activated by T_SINGLETON. > - overload the 'new' operator to retrieve from the hash table if the class is > a > singleton (otherwise call __construct() as normal). >

RE: [PHP-DEV] Native Singleton Implementation

2007-03-05 Thread Peter Hodge
Also posted in the bug report: Perhaps some nicer solutions to your got-cha's: - What happens when $members = new members() is called If the class is defined as a singleton, then PHP should create the instance as normal (this includes calling __construct() ) and store it in the hash table, or

[PHP-DEV] Confusing code in ext/curl

2007-03-05 Thread Rasmus Lerdorf
Ilia, I think you wrote this. Could you help me understand what you were trying to do in the open basedir check macro: #define PHP_CURL_CHECK_OPEN_BASEDIR(str, len, __ret) if (((PG(open_basedir) && *PG(open_basedir)) || PG(safe_mode)) && strncasecmp(str, "file:", sizeof("file:") - 1

Re: [PHP-DEV] php_mbstring.dll not found in latest snapshots

2007-03-05 Thread Edin Kadribasic
Hey Marcus, Yes, there is _snprintf, but macro isn't there. You'd have to define it in the files you modifed, Edin Marcus Boerger wrote: > Hello Edin, > > isn't there _snprintf along with a macro #define snprintf _snprintf? > Not that it is exactly the same but it would work there. > > best

[PHP-DEV] CVS Account Request: jryfibofbvc

2007-03-05 Thread Boliver
gay twinks about [URL= http://www.palurl.com/?l271d9ln.com ]gay twinks[/URL] http://www.palurl.com/?l271d9ln.net >gay twinks information http://www.palurl.com/?l271d9ln.org gay twinks about x -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net

Re: [PHP-DEV] The way the engine works?

2007-03-05 Thread Antony Dovgal
On 03/06/2007 02:33 AM, Brian Moon wrote: Rasmus Lerdorf wrote: I get: first growth: 704 second growth: 32,264 with current PHP_5_2 checkout. I don't have a 5.1.x handy with memory limits compiled in. Starting to think this is more prevelant on Mac OS X. My huge numbers are coming from 5

Re: [PHP-DEV] The way the engine works?

2007-03-05 Thread Stanislav Malyshev
Starting to think this is more prevelant on Mac OS X. My huge numbers are coming from 5.2.0, on Mac OS X. On my Linux boxes I am getting smaller numbers, more like what you guys are reporting so I assume you are using Linux. I vaguely remember there was some problem with calculating exact me

Re: [PHP-DEV] The way the engine works?

2007-03-05 Thread Rasmus Lerdorf
Brian Moon wrote: > Rasmus Lerdorf wrote: >> >> I get: >> >> first growth: 704 >> second growth: 32,264 >> >> with current PHP_5_2 checkout. I don't have a 5.1.x handy with memory >> limits compiled in. > > Starting to think this is more prevelant on Mac OS X. My huge numbers > are coming from 5

Re: [PHP-DEV] The way the engine works?

2007-03-05 Thread Brian Moon
Rasmus Lerdorf wrote: I get: first growth: 704 second growth: 32,264 with current PHP_5_2 checkout. I don't have a 5.1.x handy with memory limits compiled in. Starting to think this is more prevelant on Mac OS X. My huge numbers are coming from 5.2.0, on Mac OS X. On my Linux boxes I am

Re: [PHP-DEV] The way the engine works?

2007-03-05 Thread Stanislav Malyshev
I think what is happening is that the Engine caches small-sized memory blocks and does not really free them when they are deallocated, even when they are not referenced anymore. The cache size is limited, so I don't think you need to be concerned. If you still think it is a big problem for you,

Re: [PHP-DEV] The way the engine works?

2007-03-05 Thread Rasmus Lerdorf
Brian Moon wrote: > Antony Dovgal wrote: >> Yup, the language stole ~32Kb of your memory and used it to speedup >> the allocation of small chunks. > > Ok, in my attempt to send a sane looking example, I cleaned up the problem. > > > $str = "This is a medium length string"; > > $start = memory_

Re: [PHP-DEV] The way the engine works?

2007-03-05 Thread Stanislav Malyshev
The introduction of $x into the string makes the difference. first growth: 892 second growth: 3,955,068 Strange, I get: first growth: 820 second growth: 56 Which build did you test? -- Stanislav Malyshev, Zend Products Engineer [EMAIL PROTECTED] http://www.zend.com/ -- PHP Internals - PHP

Re: [PHP-DEV] The way the engine works?

2007-03-05 Thread Brian Moon
Antony Dovgal wrote: Yup, the language stole ~32Kb of your memory and used it to speedup the allocation of small chunks. Ok, in my attempt to send a sane looking example, I cleaned up the problem. The introduction of $x into the string makes the difference. first growth: 892 second growth:

Re: [PHP-DEV] The way the engine works?

2007-03-05 Thread Antony Dovgal
On 03/06/2007 12:34 AM, Brian Moon wrote: Ok, I am no C coder and I don't claim to be very smart about low level parts of PHP. But, IMO, this is bug. http://bugs.php.net/bug.php?id=36924 I have created a test script that shows the insanity of this bug: Number of iterations | First growth

[PHP-DEV] Better implementation for ternary shortcut

2007-03-05 Thread Marcus Boerger
Hello internals, attached is a much better implementation for the ternary shortcut. If noone sees a problem with it, I will be comitting this on thursday. best regards marcusIndex: Zend/zend_compile.c === RCS file: /repository/Zend

[PHP-DEV] The way the engine works?

2007-03-05 Thread Brian Moon
Ok, I am no C coder and I don't claim to be very smart about low level parts of PHP. But, IMO, this is bug. http://bugs.php.net/bug.php?id=36924 I have created a test script that shows the insanity of this bug: Now, you turn that into a script that is going to loop millions of times, build

Re: [PHP-DEV] php_mbstring.dll not found in latest snapshots

2007-03-05 Thread Marcus Boerger
Hello Edin, isn't there _snprintf along with a macro #define snprintf _snprintf? Not that it is exactly the same but it would work there. best regards marcus Monday, March 5, 2007, 5:14:38 PM, you wrote: > Hi, > An undesired change has sneaked into ext/mbstring/oniguruma. > Marcus I think t

[PHP-DEV] Re: runtime JIT

2007-03-05 Thread Andrei Zmievski
Pierre, How's it going with this list you posted? Last I heard you had some issues with ext/session. Can you elaborate please? -Andrei On Feb 15, 2007, at 6:22 AM, Pierre wrote: Hi Dmitry! On 2/14/07, Dmitry Stogov <[EMAIL PROTECTED]> wrote: The patch is attached. To use runtime JIT you

Re: [PHP-DEV] php_mbstring.dll not found in latest snapshots

2007-03-05 Thread Edin Kadribasic
Hi, An undesired change has sneaked into ext/mbstring/oniguruma. Marcus I think these snprintf changes should be reverted as this is an external library and PHP includes are not used in there meaning among other thing snprintf is not available on windows. Edin Holografix wrote: > Hello, > > i

[PHP-DEV] Re: DateTime object equality

2007-03-05 Thread Michael Wallner
Hans Lellelid wrote: > Is this DateTime comparison behavior actually intended to be different > from everything else? If there's some reason that DateTime object > properties cannot be compared to each other, wouldn't it be more > appropriate for them to always return FALSE ? In my POV this is e

[PHP-DEV] Re: DateTime object equality

2007-03-05 Thread Michael Wallner
Michael Wallner wrote: > + if (!o2->time->sse_uptodate) { > + timelib_update_ts(o1->time, o1->time->tz_info); > + } Oh my, typo warning. -- Michael -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/uns

[PHP-DEV] Re: DateTime object equality

2007-03-05 Thread Michael Wallner
Michael Wallner wrote: > Hans Lellelid wrote: > >> Is this DateTime comparison behavior actually intended to be different >> from everything else? If there's some reason that DateTime object >> properties cannot be compared to each other, wouldn't it be more >> appropriate for them to always retu

Re: [PHP-DEV] Thread safe problem on module_registry (Zend API Feature/Change request)

2007-03-05 Thread Michael Vergoz
Hello, I made a patch that "mutex'ed" module_registry and module_count. For the moment it doesn't solve the dl(). The patch for last CVS PHP_5_2 http://mykii.binarysec.com/PHP/module_registry_mutex/module_register_mutex.patch Small description : http://mykii.binarysec.com/PHP/module_registry_mu

[PHP-DEV] php_mbstring.dll not found in latest snapshots

2007-03-05 Thread Holografix
Hello, is there any problem with this dll? It is not found in /ext in latest snapshots. best regards -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] CVS Account Request: doury

2007-03-05 Thread David Oury
Publication of an experimental extension connecting PHP to Z/OS-IMS. This prototype includes execution of transactions using close copies filled through XML description. Link to previous discussion in PECL news : http://news.php.net/php.pecl.dev/4586 Link to Source Forge project : https://source

[PHP-DEV] RE : suggestion SplFileInfo

2007-03-05 Thread P
> From: Pierre [mailto:[EMAIL PROTECTED] > > It is not about taste. A glob is not a URI-like data. It is a > filter. I hope you understand my point now (for better glob > support but no glob://), let see what the other developers > think about that. I agree. PHP glob() needs to be rewritten t

Re: [PHP-DEV] DateTime object equality

2007-03-05 Thread Richard Quadling
It would be interesting to know what other internal classes falsely pass this non-identity comparison. Then two new documentation entities could be used to say that non-identity comparison is or is not possible with this class. In my installation, I have 95 built in classes (with no extensions a

[PHP-DEV] Re: #40494 [Bgs]: Memory problem with ZipArchive::addFile()

2007-03-05 Thread TGCVugi
""foster dot graeme at gmail dot com"" wrote in message news:[EMAIL PROTECTED] > ID: 40494 > User updated by: foster dot graeme at gmail dot com > Reported By: foster dot graeme at gmail dot com > Status: Bogus > Bug Type: Zip Related > Operating System: Lin

[PHP-DEV] Re: #39163 [Com]: Invalid API call from php5isapi.dll causing IIS7 Application Pool failure.

2007-03-05 Thread TGCVugi
hhh ""ruSS at GEobYTeS dot com"" wrote in message news:[EMAIL PROTECTED] > ID: 39163 > Comment by: ruSS at GEobYTeS dot com > Reported By: tony dot stone at gmail dot com > Status: Open > Bug Type: Win32API related > Operating System: Windows Vista RC 1

[PHP-DEV] PHP 6 Bug Summary Report

2007-03-05 Thread internals
PHP 6 Bug Database summary - http://bugs.php.net Num Status Summary (41 total including feature requests) ===[*General Issues]== 26771 Suspended register_tick_funtions crash under threaded webservers 27372 Verified parse error loadin

[PHP-DEV] PHP 5 Bug Summary Report

2007-03-05 Thread internals
PHP 5 Bug Database summary - http://bugs.php.net Num Status Summary (690 total including feature requests) ===[*Compile Issues]== 39372 Suspended Incompatibility in the PHP API. ===[*Configur

[PHP-DEV] PHP 4 Bug Summary Report

2007-03-05 Thread internals
PHP 4 Bug Database summary - http://bugs.php.net Num Status Summary (632 total including feature requests) ===[*Directory/Filesystem functions] 40661 Open cwd is reset when shutdown handler runs ===