[PHP-DEV] $phar->isWritable() works now too

2008-04-09 Thread Gregory Beaver
Hi, I re-read the messages, and realized I had misunderstood what was being requested, although it did pay off in finding a subtle bug in is_writeable() for files within a phar. I just implemented Phar->isWritable(), which can be used to detect the right combination of file permissions, archive t

[PHP-DEV] phar['blah.php']->isWritable() works now

2008-04-09 Thread Gregory Beaver
Hi, There were some rumblings about wanting a way to detect whether a specific file/archive was writeable. I made some small changes to the way we detect this when the ini setting is changed, and added a test. Now the existing isWritable() from SplFileInfo always works properly for Phar. In add

Re: [PHP-DEV] [PATCH] LSB - forward_static_call function patch (with tests)

2008-04-09 Thread Stanislav Malyshev
It's already in, and none so far ;) Heh, I missed it. Great then :) -- Stanislav Malyshev, Zend Software Architect [EMAIL PROTECTED] http://www.zend.com/ (408)253-8829 MSN: [EMAIL PROTECTED] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/

Re: [PHP-DEV] [PATCH] LSB - forward_static_call function patch (with tests)

2008-04-09 Thread Etienne Kneuss
Hello, It's already in, and none so far ;) Regards On Thu, Apr 10, 2008 at 1:27 AM, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: > Hi! > > Mike Lively wrote: > > > I have created a few tests for the patch and updated to the patch to the > > tip > > of both php6 and php5.3 > > > > http://ds-o.c

Re: [PHP-DEV] [PATCH] LSB - forward_static_call function patch (with tests)

2008-04-09 Thread Stanislav Malyshev
Hi! Mike Lively wrote: I have created a few tests for the patch and updated to the patch to the tip of both php6 and php5.3 http://ds-o.com/Patches/lsb.forward_static_call.v3.tar.gz Looks fine. Any objections to this patch from anybody? -- Stanislav Malyshev, Zend Software Architect [EMAIL PR

[PHP-DEV] phar API update

2008-04-09 Thread Gregory Beaver
Hi, I've just implemented these features: 1) new getContents() method allows directly retrieving file contents. Here is a full-circle example: getContents(); ?> 2) addFile/addEmptyDir/addFromString. API is identical to ext/zip addEmptyDir('hello'); var_dump($phar['hello']->isDir()); $phar->add

Re: [PHP-DEV] intl win32, which ICU version and binaries?

2008-04-09 Thread Stanislav Malyshev
I'm running some more tests and evaluation on windows and got stuck in the build session. Which ICU version do you use? Or do you use the binaries provided by IBM (I tried with vc2k3 without much success)? Any since 2.6 should be fine. I think I was using ones from here: http://www.icu-project.

Re: [PHP-DEV] Missing signature violation warnings suck.

2008-04-09 Thread Stanislav Malyshev
Hi! public function limit( $limit, $offset = '' ); public function limit( $limit = 10, $offset = 0 ) No problems at all while development, no warnings, no errors. Now when I deployed this on a PHP 5.2 machine it bombed out, with the following *correct* message: Fatal error: Declarati

Re: [PHP-DEV] practical phar considerations

2008-04-09 Thread Gregory Beaver
Steph Fox wrote: > Hi Greg, > >> What I would like to do, however, is to rethink offsetSet(). I think >> that we should introduce a property of PharFileInfo called "content" >> that is read/write, and can be used to perform the equivalent of >> file_get_contents()/file_put_contents(). This will

Re: [PHP-DEV] testfest

2008-04-09 Thread zoe
Hi Lig - I think I may have got half way through replying to this and then forgotten... 1) Who is willing to be a mentor? What areas do you want to mentor? What areas are you willing to mentor? Where are you physically located if the local user group would like to work with you - what tim

[PHP-DEV] intl win32, which ICU version and binaries?

2008-04-09 Thread Pierre Joye
Hi! I'm running some more tests and evaluation on windows and got stuck in the build session. Which ICU version do you use? Or do you use the binaries provided by IBM (I tried with vc2k3 without much success)? It would be helpful if you can put your ICU binaries and dev files somewhere (ideally f

[PHP-DEV] Re: Missing signature violation warnings suck.

2008-04-09 Thread Christian Schneider
Derick Rethans wrote: > I've been working on some code, while developing on PHP 5.3. The code > resembles the following structure: > > interface ezcSearchQuery > { > public function limit( $limit, $offset = '' ); > } > > class ezcSearchFindQuerySolr implements ezcSearchQuery > { > publi

Re: [PHP-DEV] Missing signature violation warnings suck.

2008-04-09 Thread Felipe Pena
Em Qua, 2008-04-09 às 11:27 +0200, Derick Rethans escreveu: > I don't know who removed this check, but please put it back > in! > Hi Derick, it looks has been introduced by this patch suggested and discussed in that thread: http://marc.info/?l=php-internals&m=120430609612237&w=2 -- Regards, F

Re: [PHP-DEV] practical phar considerations

2008-04-09 Thread Gregory Beaver
Pierre Joye wrote: > Hi, > > On Wed, Apr 9, 2008 at 6:48 AM, Gregory Beaver <[EMAIL PROTECTED]> wrote: > > >> For other examples, take a look at at >> ext/zip. There is no support for opendir() in the stream wrapper of >> ext/zip because it requires the kind of path grepping that pecl/phar

[PHP-DEV] CVS Account Request: lucor

2008-04-09 Thread Luca Corbo
Maintain the Net_Nmap Pear package -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] practical phar considerations

2008-04-09 Thread Steph Fox
Hi Greg, What I would like to do, however, is to rethink offsetSet(). I think that we should introduce a property of PharFileInfo called "content" that is read/write, and can be used to perform the equivalent of file_get_contents()/file_put_contents(). This will allow a consistency that is muc

[PHP-DEV] Missing signature violation warnings suck.

2008-04-09 Thread Derick Rethans
Hello there, I've been working on some code, while developing on PHP 5.3. The code resembles the following structure: limit = $limit; $this->offset = $offset; } } ?> No problems at all while development, no warnings, no errors. Now when I deployed this on a PHP 5.2 machine it bombe

[PHP-DEV] destroy the current object (PDO)

2008-04-09 Thread Olivier Bonvalet
Hello, I would like to correct a little "problem" with : when an error occured in the constructor (a connection error for example) no object is returned. Internally, the object is created then destroyed (via "ZVAL_NULL(object);" statement). The problem is when the PDO class is derived and the

Re: [PHP-DEV] intl naming

2008-04-09 Thread Pierre Joye
On Wed, Apr 9, 2008 at 9:01 AM, David Zülke <[EMAIL PROTECTED]> wrote: > Sure, but you need to remember that this means someone has to maintain the > mappings. > > Mind you that pretty much any locale-related information is in the CLDR > already - language, territory and timezone mappings, for i

Re: [PHP-DEV] intl naming

2008-04-09 Thread David Zülke
Am 09.04.2008 um 08:48 schrieb Pierre Joye: On Wed, Apr 9, 2008 at 12:07 AM, David Zülke <[EMAIL PROTECTED]> wrote: Note that most of this info is already in the CLDR info. And I am with Stas here, not sure if it's really necessary. You can do this mapping by hand, if necessary, but trust me