Hello Ci,
Tuesday, April 24, 2007, 11:02:52 PM, you wrote:
> Tijnema ! napisał(a):
> > I believe that the source string needs to be 0 terminated (\0).
>> Don't ask me how to fix it ;)
> Thanks all of You. I solve all problems. Hmmm, maybe there are some
> things to make better, but the main id
On Tue, April 24, 2007 4:02 pm, Ci wrote:
> Tijnema ! napisa³(a):
> > I believe that the source string needs to be 0 terminated (\0).
>> Don't ask me how to fix it ;)
> Thanks all of You. I solve all problems. Hmmm, maybe there are some
> things to make better, but the main idea is solved.
>
> BT
On Tue, April 24, 2007 3:22 pm, Derick Rethans wrote:
> On Tue, 24 Apr 2007, Pawe? Stradomski wrote:
>
>> Derick Rethans wrote:
>> > On Tue, 24 Apr 2007, David Lindstrom wrote:
>> > > Still, PHP should never segfault?
>> >
>> > Almost never... stack overflows are "okay".
>> >
>>
>> I' ve run into P
On Tue, April 24, 2007 2:40 pm, Pawe³ Stradomski wrote:
> Derick Rethans wrote:
>> On Tue, 24 Apr 2007, David Lindstrom wrote:
>> > Still, PHP should never segfault?
>>
>> Almost never... stack overflows are "okay".
>>
>> regards,
>> Derick
>>
>
> I' ve run into PHP segfaulting (infinte loop of two
On Tue, April 24, 2007 11:16 am, Rasmus Lerdorf wrote:
> Chris Malton wrote:
>> // secure variables from outside
>> $modxtags = array('@]*?>.*?@si',
>> '@(\d+);@e',
>> '@\[\[(.*?)[EMAIL PROTECTED]',
>> '@\[!(.*?)[EMAIL PROTECTED]',
>>
On 04/25/2007 01:02 AM, Ci wrote:
Tijnema ! napisał(a):
> I believe that the source string needs to be 0 terminated (\0).
Don't ask me how to fix it ;)
Thanks all of You. I solve all problems. Hmmm, maybe there are some
things to make better, but the main idea is solved.
BTW. Documentation
On 4/24/07, Ci <[EMAIL PROTECTED]> wrote:
Tijnema ! napisał(a):
> I believe that the source string needs to be 0 terminated (\0).
> Don't ask me how to fix it ;)
Thanks all of You. I solve all problems. Hmmm, maybe there are some
things to make better, but the main idea is solved.
BTW. Document
It seems like zend_mm_set_heap() isn't very useful outside
zend_alloc.c because the zend_mm_heap structure definition is within
the zend_alloc.c file rather than zend_alloc.h. Could we move the AG
() and associated structures to the header file, or perhaps I missed
something?
- Shire
Tijnema ! napisał(a):
> I believe that the source string needs to be 0 terminated (\0).
Don't ask me how to fix it ;)
Thanks all of You. I solve all problems. Hmmm, maybe there are some
things to make better, but the main idea is solved.
BTW. Documentation of php API is tragic ;)
Regards,
Ci
[EMAIL PROTECTED] wrote:
Wow thats fast!
On my machine i get these results:
Win32 (PHP 5.2.1 CLI)
require_once - 1.7735 sec
myrequire_once - 1.0973 sec
I made two benchmarks one with relative paths and one with full paths.
The full paths:
Here the benchmarks with relative paths:
Ubuntu
On Tue, 24 Apr 2007, Pawe? Stradomski wrote:
> Derick Rethans wrote:
> > On Tue, 24 Apr 2007, David Lindstrom wrote:
> > > Still, PHP should never segfault?
> >
> > Almost never... stack overflows are "okay".
> >
>
> I' ve run into PHP segfaulting (infinte loop of two constructors) recently
> an
Guilherme Blanco wrote:
I think the best separator is :::
thats not what i asked :)
and it should not be the issue we focus on at this point either.
regards,
Lukas
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Derick Rethans wrote:
> On Tue, 24 Apr 2007, David Lindstrom wrote:
> > Still, PHP should never segfault?
>
> Almost never... stack overflows are "okay".
>
> regards,
> Derick
>
I' ve run into PHP segfaulting (infinte loop of two constructors) recently and
I think it should not happen in any case
On Tue, 24 Apr 2007, David Lindstrom wrote:
> Still, PHP should never segfault?
Almost never... stack overflows are "okay".
regards,
Derick
--
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, vis
Doesn't the zval contain info about the length of the string?
--
// DvDmanDT
mail: dvdmandt¤telia.com
msn: dvdmandt¤hotmail.com
"Ci" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> Stefan Esser napisa³(a):
>> No. The correct way for getting the variable is
>>
>>
>> zval **data;
Still, PHP should never segfault?
"Chris Malton" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> Antony Dovgal wrote:
>> Please try the latest snapshot available at http://snaps.php.net.
>> If you're still able to reproduce the problem using the snap, please
>> provide a short (
On 4/24/07, Ci <[EMAIL PROTECTED]> wrote:
Stefan Esser napisał(a):
> No. The correct way for getting the variable is
>
>
> zval **data;
> ...
> if (zend_hash_find(Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_SERVER]),
> "DOCUMENT_ROOT", sizeof("DOCUMENT_ROOT"), &data)==SUCCESS) {
> ...
> strlcp
> -Original Message-
> From: Andrew Hutchings [mailto:[EMAIL PROTECTED]
> Subject: [PHP-DEV] Re: Performance problem in Windows between
> 5.1 & 5.2
>
> I brought this issue up before using Linux, but it was all in my
> imagination apparently :)
>
> Regards
> Andrew
Thanks for your resp
Hello John,
I'm having trouble building the installer lately. I get the following
error message once I have put all the files in place and when I run
build script.
Fatal error: Call to a member function appendChild() on a non-object in
C:\php4build\installer\tmp\win-installer\GenExtensionsCompone
Antony Dovgal wrote:
> Please try the latest snapshot available at http://snaps.php.net.
> If you're still able to reproduce the problem using the snap, please
> provide a short (max 20-30 lines long) but complete reproduce script.
> Thanks in advance.
>
Can reproduce on 200704241430 snapshot (to
On Apr 24, 2007, at 7:50 AM, Lukas Kahwe Smith wrote:
So Jessie are you still interested? Does anyone with sufficient
ZendEngine2 karma have time to help him get a rock solid
implementation committed?
ZendEngine2 karma is not necessary to help with this task. It's only
needed for commit.
Mauro Infantino wrote:
> Hi all,
>
> I'm using PHP 5.1.6 & 5.2.1.
> Is there any known performance issue with PHP 5.2.1?
> With the same script, same php.ini, same extensions, same apache (of course),
> I'm getting a huge difference.
>
> For example, with a microtime difference between start & e
On 04/24/2007 08:13 PM, Chris Malton wrote:
Antony Dovgal wrote:
What's in modx/index.php ?
Looking at the backtrace, I'd say there is an infinite loop.
I have pasted the modx/index.php file above, but it includes so many
files, you might want to download it from http://www.modxcms.com
Plea
Chris Malton wrote:
> // secure variables from outside
> $modxtags = array('@]*?>.*?@si',
> '@(\d+);@e',
> '@\[\[(.*?)[EMAIL PROTECTED]',
> '@\[!(.*?)[EMAIL PROTECTED]',
> '@\[\~(.*?)[EMAIL PROTECTED]',
> '@
Antony Dovgal wrote:
>>> What's in modx/index.php ?
>>> Looking at the backtrace, I'd say there is an infinite loop.
http://modxcms.com/
**
Originall based on Etomite by Alex Butter
***
On 04/24/2007 07:43 PM, Chris Malton wrote:
Antony Dovgal wrote:
On 04/24/2007 10:41 AM, Chris Malton wrote:
Here's what I get with PHP 5.2.1 archives from your website, after it
builds OK, it segfaults while running. Can anyone explain this?
[EMAIL PROTECTED]:/srv/www/org/dyndns/cjsoftuk/d
i need pdf functions
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Antony Dovgal wrote:
> On 04/24/2007 10:41 AM, Chris Malton wrote:
>> Here's what I get with PHP 5.2.1 archives from your website, after it
>> builds OK, it segfaults while running. Can anyone explain this?
>
>> [EMAIL PROTECTED]:/srv/www/org/dyndns/cjsoftuk/domain_public$ php
>> modx/index.php
>
Hi there,
I wrote a module to embed php in the myserver web server
(http://www.myserverproject.net). Is there any possibility to have
this module in the official PHP repository?
The current version can be downloaded from:
http://people.myserverproject.net/~giuseppe/php/php.tar.gz
I didn't enoug
Hello,
Andrei asked me to bring up the topic of namespaces again. From the
meeting notes [1] and the following discussion it seems like we agreed
(once more) to include namespace support in PHP6. However after a time
where we saw a flurry of patches, things have died down. Also Marcus
does no
Stefan Esser napisał(a):
No. The correct way for getting the variable is
zval **data;
...
if (zend_hash_find(Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_SERVER]),
"DOCUMENT_ROOT", sizeof("DOCUMENT_ROOT"), &data)==SUCCESS) {
...
strlcpy(buffer, Z_STRVAL_PP(data), sizeof(buffer));
}
I tried to
Hi all,
I'm using PHP 5.1.6 & 5.2.1.
Is there any known performance issue with PHP 5.2.1?
With the same script, same php.ini, same extensions, same apache (of course),
I'm getting a huge difference.
For example, with a microtime difference between start & end I get:
- PHP 5.1.6: 111ms avg.
- PH
Ci schrieb:
> Stefan Esser napisał(a):
>> Hello,
>>
>>> zend_hash_find(Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_SERVER]),
>>> "DOCUMENT ROOT", sizeof("DOCUMENT ROOT"), &data);
>>> strcpy(buffer, Z_STRVAL_P(data);
>> It is called DOCUMENT_ROOT, not DOCUMENT ROOT...
> It was mistake in rewriting. I
Stefan Esser napisał(a):
Hello,
zend_hash_find(Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_SERVER]),
"DOCUMENT ROOT", sizeof("DOCUMENT ROOT"), &data);
strcpy(buffer, Z_STRVAL_P(data);
It is called DOCUMENT_ROOT, not DOCUMENT ROOT...
It was mistake in rewriting. If I choose any php variable, suc
Hello,
> zend_hash_find(Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_SERVER]),
> "DOCUMENT ROOT", sizeof("DOCUMENT ROOT"), &data);
> strcpy(buffer, Z_STRVAL_P(data);
It is called DOCUMENT_ROOT, not DOCUMENT ROOT...
-sesser
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, vi
Tijnema ! napisał(a):
Ok, i don't know a lot about the core of PHP, but i do know the C language.
First of all, i don't see you declaring buffer somewhere, i guess you
did it without showing, or that it is in the core. But if it isn't
both, you should do :)
Also note that buffer should be declar
Hello,
From my understanding the main thing that is holding back a first
preview/alpha release of PHP6 is solving the below explained issues in
the JIT parameter handling. Pierre and Dmitry were the two most likely
candidates to implement this, but I guess both of them are busy (?).
Maybe som
On 4/24/07, Ci <[EMAIL PROTECTED]> wrote:
I tried to use smth like that:
zval *data = NULL;
zend_hash_find(Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_SERVER]),
"DOCUMENT ROOT", sizeof("DOCUMENT ROOT"), &data);
strcpy(buffer, Z_STRVAL_P(data);
Then I write the buffer to file, but I don't get
I tried to use smth like that:
zval *data = NULL;
zend_hash_find(Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_SERVER]),
"DOCUMENT ROOT", sizeof("DOCUMENT ROOT"), &data);
strcpy(buffer, Z_STRVAL_P(data);
Then I write the buffer to file, but I don't get correct variable.
I'm working with php-5.
On 4/24/07, Antony Dovgal <[EMAIL PROTECTED]> wrote:
On 04/24/2007 02:17 PM, [EMAIL PROTECTED] wrote:
> Wow thats fast!
>
> On my machine i get these results:
> Win32 (PHP 5.2.1 CLI)
>
> require_once - 1.7735 sec
> myrequire_once - 1.0973 sec
>
>
> is that with the sources i just send?
Yes, of c
On 04/24/2007 02:17 PM, [EMAIL PROTECTED] wrote:
Wow thats fast!
On my machine i get these results:
Win32 (PHP 5.2.1 CLI)
require_once - 1.7735 sec
myrequire_once - 1.0973 sec
is that with the sources i just send?
Yes, of course.
But I'm using Linux, not windows.
--
Wbr,
Antony Dovgal
-
On Tue, 24 Apr 2007, [EMAIL PROTECTED] wrote:
> Wow thats fast!
>
> On my machine i get these results:
> Win32 (PHP 5.2.1 CLI)
You use windows, you lose... Don't think that any sort of benchmarking
on Windows makes sense...
regards,
Derick
--
PHP Internals - PHP Runtime Development Mailing L
On 04/24/2007 03:01 PM, Marco Tabini wrote:
On 24-Apr-07, at 7:00 AM, Antony Dovgal wrote:
Yes, of course.
But I'm using Linux, not windows.
Maybe you're even using a machine that is more powerful than his...
Maybe.
But I doubt that powerful machines execute internal functions faster than
On 24-Apr-07, at 7:00 AM, Antony Dovgal wrote:
Yes, of course.
But I'm using Linux, not windows.
Maybe you're even using a machine that is more powerful than his...
Mt.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Wow thats fast!
On my machine i get these results:
Win32 (PHP 5.2.1 CLI)
require_once - 1.7735 sec
myrequire_once - 1.0973 sec
is that with the sources i just send?
Am 24.04.2007, 12:10 Uhr, schrieb Antony Dovgal <[EMAIL PROTECTED]>:
On 04/24/2007 01:07 PM, [EMAIL PROTECTED] wrote:
Hello e
On 04/24/2007 01:07 PM, [EMAIL PROTECTED] wrote:
Hello everyone,
when testing speed of includes and requires i found that "require_once"
seems to be very slow in comparison to "require". Even worse
"require_once" seems to be slower than a php function "myrequire_once".
This is true not onl
require_once verifies (via stat()) each path component in the path
being loaded so that it can canonicalize it to check it against the
canonicalized list of already-required files.
Run your script below under strace and you will see all of those stats
gumming up the works.
Note also that if you
Hello everyone,
when testing speed of includes and requires i found that "require_once"
seems to be very slow in comparison to "require". Even worse
"require_once" seems to be slower than a php function "myrequire_once".
This is true not only for cli but also when using apc or eAccelerator.
On 04/24/2007 10:41 AM, Chris Malton wrote:
Here's what I get with PHP 5.2.1 archives from your website, after it
builds OK, it segfaults while running. Can anyone explain this?
[EMAIL PROTECTED]:/srv/www/org/dyndns/cjsoftuk/domain_public$ php modx/index.php
Segmentation fault
What's in mod
49 matches
Mail list logo