Re: [PHP-DEV] Re: access to variables

2007-04-24 Thread Marcus Boerger
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

Re: [PHP-DEV] Re: access to variables

2007-04-24 Thread Richard Lynch
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

Re: [PHP-DEV] Segfault in PHP 5.2.1

2007-04-24 Thread Richard Lynch
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

Re: [PHP-DEV] Segfault in PHP 5.2.1

2007-04-24 Thread Richard Lynch
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

Re: [PHP-DEV] Segfault in PHP 5.2.1

2007-04-24 Thread Richard Lynch
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]', >>

Re: [PHP-DEV] Re: access to variables

2007-04-24 Thread Antony Dovgal
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

Re: [PHP-DEV] Re: access to variables

2007-04-24 Thread Tijnema !
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

[PHP-DEV] zend_mm_set_heap()

2007-04-24 Thread Brian Shire
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

Re: [PHP-DEV] Re: access to variables

2007-04-24 Thread Ci
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

Re: [PHP-DEV] require_once

2007-04-24 Thread [EMAIL PROTECTED]
[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

Re: [PHP-DEV] Segfault in PHP 5.2.1

2007-04-24 Thread Derick Rethans
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

Re: [PHP-DEV] namespace support

2007-04-24 Thread Lukas Kahwe Smith
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

Re: [PHP-DEV] Segfault in PHP 5.2.1

2007-04-24 Thread Paweł Stradomski
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

Re: [PHP-DEV] Segfault in PHP 5.2.1

2007-04-24 Thread Derick Rethans
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

Re: [PHP-DEV] Re: access to variables

2007-04-24 Thread David Lindstrom
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;

Re: [PHP-DEV] Segfault in PHP 5.2.1

2007-04-24 Thread David Lindstrom
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 (

Re: [PHP-DEV] Re: access to variables

2007-04-24 Thread Tijnema !
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

Re: [PHP-DEV] Performance problem in Windows between 5.1 & 5.2

2007-04-24 Thread Mauro N. Infantino
> -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

[PHP-DEV] Installer build failure

2007-04-24 Thread Edin Kadribasic
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

Re: [PHP-DEV] Segfault in PHP 5.2.1

2007-04-24 Thread Chris Malton
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

Re: [PHP-DEV] namespace support

2007-04-24 Thread Andrei Zmievski
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.

[PHP-DEV] Re: Performance problem in Windows between 5.1 & 5.2

2007-04-24 Thread Andrew Hutchings
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

Re: [PHP-DEV] Segfault in PHP 5.2.1

2007-04-24 Thread Antony Dovgal
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

Re: [PHP-DEV] Segfault in PHP 5.2.1

2007-04-24 Thread Rasmus Lerdorf
Chris Malton wrote: > // secure variables from outside > $modxtags = array('@]*?>.*?@si', > '@&#(\d+);@e', > '@\[\[(.*?)[EMAIL PROTECTED]', > '@\[!(.*?)[EMAIL PROTECTED]', > '@\[\~(.*?)[EMAIL PROTECTED]', > '@

Re: [PHP-DEV] Segfault in PHP 5.2.1

2007-04-24 Thread Chris Malton
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 ***

Re: [PHP-DEV] Segfault in PHP 5.2.1

2007-04-24 Thread Antony Dovgal
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

[PHP-DEV] CVS Account Request: jagamanji

2007-04-24 Thread jagadish kumar
i need pdf functions -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Segfault in PHP 5.2.1

2007-04-24 Thread Chris Malton
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 >

[PHP-DEV] myserver embedded php support

2007-04-24 Thread Giuseppe Scrivano
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

[PHP-DEV] namespace support

2007-04-24 Thread Lukas Kahwe Smith
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

Re: [PHP-DEV] Re: access to variables

2007-04-24 Thread Ci
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

[PHP-DEV] Performance problem in Windows between 5.1 & 5.2

2007-04-24 Thread Mauro Infantino
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

Re: [PHP-DEV] Re: access to variables

2007-04-24 Thread Stefan Esser
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

Re: [PHP-DEV] Re: access to variables

2007-04-24 Thread Ci
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

Re: [PHP-DEV] Re: access to variables

2007-04-24 Thread Stefan Esser
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

Re: [PHP-DEV] Re: access to variables

2007-04-24 Thread Ci
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

Re: [PHP-DEV] Re: runtime JIT

2007-04-24 Thread Lukas Kahwe Smith
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

Re: [PHP-DEV] Re: access to variables

2007-04-24 Thread Tijnema !
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

[PHP-DEV] Re: access to variables

2007-04-24 Thread Ci
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.

Re: [PHP-DEV] require_once

2007-04-24 Thread Tijnema !
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

Re: [PHP-DEV] require_once

2007-04-24 Thread Antony Dovgal
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 -

Re: [PHP-DEV] require_once

2007-04-24 Thread Derick Rethans
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

Re: [PHP-DEV] require_once

2007-04-24 Thread Antony Dovgal
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

Re: [PHP-DEV] require_once

2007-04-24 Thread Marco Tabini
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

Re: [PHP-DEV] require_once

2007-04-24 Thread [EMAIL PROTECTED]
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

Re: [PHP-DEV] require_once

2007-04-24 Thread Antony Dovgal
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

Re: [PHP-DEV] require_once

2007-04-24 Thread David Sklar
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

[PHP-DEV] require_once

2007-04-24 Thread [EMAIL PROTECTED]
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.

Re: [PHP-DEV] Segfault in PHP 5.2.1

2007-04-24 Thread Antony Dovgal
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