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).
>
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
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
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
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
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
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
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
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
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,
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_
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
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:
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
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
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
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
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
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
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
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
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
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
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
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
> 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
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
""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
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 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 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 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
===
32 matches
Mail list logo