Re: [PHP-DEV] memory corruption with 5.1?

2005-07-07 Thread Sebastian Bergmann
James Crumpton schrieb: > Also, it may or may not be worth noting that as of libxml2-2.6.18, I'm > getting a segfault after the script has finished. 2.6.17 however, works > fine. Looks like libxml2-2.6.19 has the same / a similar issue: http://bugs.gentoo.org/show_bug.cgi?id=97406 -- Sebastian

Re: [PHP-DEV] memory corruption with 5.1?

2005-07-07 Thread James Crumpton
Looks like libxml2-2.6.8 did the trick. Perhaps the version requirement for libxml2 should be bumped up for php5.1? Also, it may or may not be worth noting that as of libxml2-2.6.18, I'm getting a segfault after the script has finished. 2.6.17 however, works fine. Program received signal SIGS

Re: [PHP-DEV] php_pgsql.dll

2005-07-07 Thread Christopher Kings-Lynne
No, I just said that the "Collection of PECL modules for PHP 5.0.4" on the downloads page does NOT contain php_pgsql.dll - nor any other db for that matter. Chris Dan Scott wrote: Of course -- the "Collection of PECL modules for PHP 5.0.4" from http://php.net/downloads.php. I had leapt to th

Re: [PHP-DEV] date/timezone classes

2005-07-07 Thread Andi Gutmans
I think what makes most sense is for you two to work together on this. Again, I am more than happy to contribute. Andi At 02:17 AM 7/8/2005 +0200, Pierre-Alain Joye wrote: On Thu, 07 Jul 2005 16:56:51 -0700 [EMAIL PROTECTED] (Andi Gutmans) wrote: > Hey Derick, > > If you're just wrapping the d

Re: [PHP-DEV] date/timezone classes

2005-07-07 Thread George Schlossnagle
On Jul 7, 2005, at 7:56 PM, Andi Gutmans wrote: It would look the following: $timeZone->getName(); vs. date_timezone_get($date); $date->getOffset(); vs. date_offset_get($date); Personally, unrelated to OO I think it's a nicer and cleaner way of exposing such an API. It would also make it e

Re: [PHP-DEV] memory corruption with 5.1?

2005-07-07 Thread Rob Richards
You should probably try a newer version of libxml2. I suspect you are hitting a refcount issue with dictionaries that was fixed in 2.6.8. And before you ask, the error would be more prominent using PHP 5.1 than 5.0. Rob James Crumpton wrote: So ... php-5.1.0b2 with --disable-zend-mm --enable-

Re: [PHP-DEV] Signal handling cleanup proposal

2005-07-07 Thread Andi Gutmans
At 05:21 PM 7/7/2005 -0700, Rasmus Lerdorf wrote: Andi Gutmans wrote: > I'd like to take a step back and try and understand better in which > cases we are failing. Although I know we added critical section code in > the hash, I think it's effectiveness is questionable, because I believe > there a

Re: [PHP-DEV] Signal handling cleanup proposal

2005-07-07 Thread Rasmus Lerdorf
Andi Gutmans wrote: > I'd like to take a step back and try and understand better in which > cases we are failing. Although I know we added critical section code in > the hash, I think it's effectiveness is questionable, because I believe > there are many places today where we might have critical se

Re: [PHP-DEV] date/timezone classes

2005-07-07 Thread Pierre-Alain Joye
On Thu, 07 Jul 2005 16:56:51 -0700 [EMAIL PROTECTED] (Andi Gutmans) wrote: > Hey Derick, > > If you're just wrapping the date type with a class, I don't see > why it shouldn't be a resource. It'd give you the same thing but > would be easier to implement (unless I'm missing something). > I realiz

Re: [PHP-DEV] Signal handling cleanup proposal

2005-07-07 Thread Andi Gutmans
I'd like to take a step back and try and understand better in which cases we are failing. Although I know we added critical section code in the hash, I think it's effectiveness is questionable, because I believe there are many places today where we might have critical sections besides the hash

Re: [PHP-DEV] date/timezone classes

2005-07-07 Thread Andi Gutmans
Hey Derick, If you're just wrapping the date type with a class, I don't see why it shouldn't be a resource. It'd give you the same thing but would be easier to implement (unless I'm missing something). I realize you personally aren't fond of OO but it actually would work very nicely with a Dat

Re: [PHP-DEV] memory corruption with 5.1?

2005-07-07 Thread James Crumpton
The output from valgrind that I posted was from 5.1.0b2. Before posting to internals I tried php5-200507060230 from snaps.php.net with no luck... I haven't tried running that through valgrind, however, but I suspect it would produce the same output. -james Antony Dovgal wrote: On Thu, 07 Ju

Re: [PHP-DEV] memory corruption with 5.1?

2005-07-07 Thread Andi Gutmans
Can you try and cut down the script to a minimum and post it? Even if it's a couple of files, that'll help (as long as it doesn't require a db or external resource, in which case you could cut that out too). At 04:17 PM 7/7/2005 -0700, James Crumpton wrote: So ... php-5.1.0b2 with --disable-zen

Re: [PHP-DEV] memory corruption with 5.1?

2005-07-07 Thread Antony Dovgal
On Thu, 07 Jul 2005 16:17:36 -0700 James Crumpton <[EMAIL PROTECTED]> wrote: > So ... php-5.1.0b2 with --disable-zend-mm --enable-debug ... apache segfaults > on > startup. > > Without --disable-zend-nm, and run through valgrind, I don't actually > experience > the corruption, but boy is ther

Re: [PHP-DEV] memory corruption with 5.1?

2005-07-07 Thread James Crumpton
So ... php-5.1.0b2 with --disable-zend-mm --enable-debug ... apache segfaults on startup. Without --disable-zend-nm, and run through valgrind, I don't actually experience the corruption, but boy is there a lot of output. Hope you like to read ;) I've included urls for the --disable-zend-mm se

[PHP-DEV] Signal handling cleanup proposal

2005-07-07 Thread Rasmus Lerdorf
Currently we have some issues when it comes to dealing with signals. We have a number of critical sections in the engine and in various extensions that rely on the HANDLE_BLOCK_INTERRUPTIONS macro in an attempt to not be interrupted. However, the actual signal blocking is supplied by the current

[PHP-DEV] Re: date/timezone classes

2005-07-07 Thread Pierre-Alain Joye
On Thu, 7 Jul 2005 23:10:16 +0200 (CEST) [EMAIL PROTECTED] (Derick Rethans) wrote: > Hei, > > I wrote up a little document about how I want to implement the > date and timezone "class"es - although I'm not planning any OO > methods. I'm just wrapping the timelib_time and timelib_tzinfo > structur

Re: [PHP-DEV] YANP (Yet Another Namespace Proposal)

2005-07-07 Thread Andi Gutmans
Did you make sure to real all the past threads on the issue? There are a variety of problems which arise with such a namespaces implementation, including ambiguity, problems with multiple symbol table lookups, dynamic variable creation, cross-file dependencies. I believe this solution suffers f

[PHP-DEV] date/timezone classes

2005-07-07 Thread Derick Rethans
Hei, I wrote up a little document about how I want to implement the date and timezone "class"es - although I'm not planning any OO methods. I'm just wrapping the timelib_time and timelib_tzinfo structures in an object. Let me know what you think. DerickDefinitions: Timezone Abbreviation: CEST,

Re: [PHP-DEV] YANP (Yet Another Namespace Proposal)

2005-07-07 Thread Jessie Hernandez
Could you elaborate on this? Let's say we have the following situation: - a.php does a full namespace import of "my_namespace". - The /my_namespace directory has two files (classes), class1.php and class2.php. - a.php has the following code: - After a.php is first run, a new file, class3.php, is

Re: [PHP-DEV] YANP (Yet Another Namespace Proposal)

2005-07-07 Thread Stanislav Malyshev
JH>>// 1) "my_namespace:class1" is added to the import hashtable. JH>>// 2) The opcode for JH>>"require_once('/usr/local/php-classes/my_namespace/class1.php')" is JH>>generated. JH>>// 3) "my_namespace:class2" is added to the import hashtable. JH>>// 4) The opcode for JH>>"require_once('/usr/local/

Re: [PHP-DEV] YANP (Yet Another Namespace Proposal)

2005-07-07 Thread Jessie Hernandez
I'm still debating whether importing all symbols from a namespace is a good idea or not (I sometimes use Java at work, and I never import a full package myself, and this is not recommended anyways). But, if it were to be implemented, then below is how I would approach it. The following would be req

Re: [PHP-DEV] YANP (Yet Another Namespace Proposal)

2005-07-07 Thread Jessie Hernandez
Actually, this will work! In the "class_name_reference" rule, the "zend_do_fetch_class" function is called. Inside this function, class_name is a znode, and what is assigned to the opcode is "opline->op2 = *class_name". This function is changed to check the import hashtable, and if a match is found

Re: [PHP-DEV] YANP (Yet Another Namespace Proposal)

2005-07-07 Thread Xuefer
at compile time? this means u cannot import * (all) symbols from a namespace -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Safemode subdirectory workaround

2005-07-07 Thread Bostjan Skufca
Hello, I created a patch to allow subdirectories to be created and used when safemode is enabled. Please let me demonstrate the approach I took to comment it (implementation also). We have the following file/dir structure: /script.php (owned by sUID)

Re: [PHP-DEV] php_pgsql.dll

2005-07-07 Thread Dan Scott
Of course -- the "Collection of PECL modules for PHP 5.0.4" from http://php.net/downloads.php. I had leapt to the (probably false) conclusion that Christopher wanted a newer version of the module. Dan On 7/7/05, Edin Kadribasic <[EMAIL PROTECTED]> wrote: > Just download regular php-5.0.4-Win32.zi

Re: [PHP-DEV] php_pgsql.dll

2005-07-07 Thread Edin Kadribasic
Just download regular php-5.0.4-Win32.zip The download page clearly states that there are no extension bundled with the installer. Edin - Original Message - From: "Dan Scott" <[EMAIL PROTECTED]> To: "Christopher Kings-Lynne" <[EMAIL PROTECTED]> Cc: "php-dev" Sent: Thursday, July 07, 20

Re: [PHP-DEV] php_pgsql.dll

2005-07-07 Thread Dan Scott
Try http://snaps.php.net/ for the "PECL extensions for the Stable 5.0 branch". Dan. On 7/6/05, Christopher Kings-Lynne <[EMAIL PROTECTED]> wrote: > Where do you get php_pgsql.dll for the PHP for windows 5.0.4 installer? > > I installed the PECL package - no pgsql. > > I searched the PECL site -

AW: [PHP-DEV] YANP (Yet Another Namespace Proposal)

2005-07-07 Thread Timm Friebe
[...] > - All imports are done at compile time. So: == Object.php == == script.php == ...will not work. You'll need an opcode for this. - Timm -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DEV] YANP (Yet Another Namespace Proposal)

2005-07-07 Thread David Zülke
Oh and to those who are just about to shout "clashes with ternary operator": $bar = new $foo ? Foo : Bar; doesn't work in PHP. - David > -Original Message- > From: David Zülke [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 07, 2005 9:32 AM > To: internals@lists.php.net > Subject: RE: [

RE: [PHP-DEV] YANP (Yet Another Namespace Proposal)

2005-07-07 Thread David Zülke
Sounds sweet. However, I already found a problem there, it has to do with aliasing. Lots of code (libraries) will, even inside the same class, use the class name for method calls instead of the "self" keywords for various reasons. This will break if the user decides to alias the class and use it, I