[PHP-DEV] Re: PHP 5.3 Suggested Feature List

2007-09-09 Thread Gregory Beaver
Ilia Alshanetsky wrote: Its been about a week since RFS for features to go into 5.3 has gone out and while there was not a flood of ideas there is a substantial list of key changes people would like to go into this release. I've compiled a list of all of the suggestions I've received, they are

[PHP-DEV] Re: PHP6 and pear

2007-09-02 Thread Gregory Beaver
BuildSmart wrote: Is there going to be a pear installation that works with PHP6 in the near future? Hi, Wrong mailing list. You want [EMAIL PROTECTED] To answer your question, http://svn.pear.php.net/wsvn/PEARSVN/Pyrus/trunk/?rev=0sc=0 is the most current work on this front. Greg -- PHP

Re: [PHP-DEV] Namespaces and __autoload()

2007-08-27 Thread Gregory Beaver
Jochem Maas wrote: Dmitry Stogov wrote: This is an implementation of Stas idea. 1) Look for existent class in current namespace 2) Look for existent internal class 3) Try to autoload class from current namespace both ways have a wtf factor in that class with names matching 'internal'

Re: [PHP-DEV] Namespaces and __autoload()

2007-08-27 Thread Gregory Beaver
Stanislav Malyshev wrote: ?php namespace Foo; throw new Exception; In this case PHP first looks for Foo::Exception and only then for internal Exception, but the first lookup may call __autoload (or corresponding SPL functions) and it can emit error or throw exception. The patch provides

Re: [PHP-DEV] Constants in namesapces

2007-08-23 Thread Gregory Beaver
Stanislav Malyshev wrote: define(__NAMESPACE__.'::FOOBAR', $value) will work out of the box. Yep, works, but looks not so nice either. I have an idea: add an operator which prepends __NAMESPACE__.'::'. I.e. say we name if ns_fullname (I know, this name sucks, get me better one :), so you'd

Re: [PHP-DEV] [PATCH] bracketed namespace, unset import, removal of namespace blah;

2007-08-22 Thread Gregory Beaver
Stanislav Malyshev wrote: 1) adds unset import syntax for declaring a namespace to have local import scope (it does NOT affect variable scope or the global class/function table) I don't like it. What's unset import? Seems to be very artificial concept. be as intuitive as possible. Having

Re: [PHP-DEV] [PATCH] bracketed namespace, unset import, removal of namespace blah;

2007-08-22 Thread Gregory Beaver
Stanislav Malyshev wrote: namespace __::__main; function thing() {} one::thing(); ? __::__ look like some weird ASCII art, maybe we need something better for it. :) it could be anything, really, I just figured there's no chance that would conflict with any other namespace. I suppose in

Re: [PHP-DEV] [PATCH] allowing multiple namespaces per file plus namespaces with brackets

2007-08-21 Thread Gregory Beaver
Larry Garfield wrote: Greg: You say that the old java-package-style definition still works, in addition to braces. I presume then that the following are equivalent: ?php namespace foo; class Bar { ... } ? ?php namespace foo { class Bar { ... } } ? What happens

Re: [PHP-DEV] [PATCH] allowing multiple namespaces per file plusnamespaces with brackets

2007-08-21 Thread Gregory Beaver
Stanislav Malyshev wrote: What happens if you mix them? ?php namespace baz; namespace foo { class Bar { ... } } ? That's not the fun yet. This is: ?php namespace baz; namespace foo { ...whatever... } class bar {} ? If by fun you mean Fatal error: Namespace cannot

Re: [PHP-DEV] [PATCH] allowing multiple namespaces per file plus namespaces with brackets

2007-08-21 Thread Gregory Beaver
Dmitry Stogov wrote: How about import statements? The had effect on current file. How they will behave with your patch? The import in one namespace will affect following namespaces... :) That's correct, import remains a per-file operation, and I pray to god that no one suggests making it

Re: [PHP-DEV] [PATCH] allowing multiple namespaces per file plus namespaces with brackets

2007-08-21 Thread Gregory Beaver
Rasmus Lerdorf wrote: Well, outside of an opcode cache, you wouldn't care whether the logic is in the compiler or the executor. But once you introduce an opcode cache, anything that you can resolve at compile-time means one less thing to do at execute time which means that the feature

Re: [PHP-DEV] [PATCH] allowing multiple namespaces per file plusnamespaces with brackets

2007-08-21 Thread Gregory Beaver
David Zülke wrote: I think there should be just one way to designate a namespace, not two different ones with different behaviors. Hi David, First, the behaviors are not different, just the syntax. Of course you can have more than one namespace per file with brackets, but the stuff within

Re: [PHP-DEV] [PATCH] allowing multiple namespaces per file plus namespaces with brackets

2007-08-21 Thread Gregory Beaver
Stanislav Malyshev wrote: that if you try to combine two files that contain import statements, it will be necessary to expand the imports. Fortunately, since What do you mean by expand? import allows aliasing specific namespaced files and classes within a file. For example: But import

Re: [PHP-DEV] [PATCH] allowing multiple namespaces per file plus namespaces with brackets

2007-08-21 Thread Gregory Beaver
Stanislav Malyshev wrote: file1.php: ?php namespace foo; class bar {} ? file2.php: ?php namespace gronk; import foo::bar; class bar {} ? The problem is not this code. The problem is this code: file1.php ?php namespace foo; import otherfoo::bar; ? file2.php: ?php namespace

[PHP-DEV] [PATCH] bracketed namespace, unset import, removal of namespace blah;

2007-08-21 Thread Gregory Beaver
Hi again, The attached patch: 1) adds unset import syntax for declaring a namespace to have local import scope (it does NOT affect variable scope or the global class/function table) 2) removes namespace Name; syntax (this I am happy to add this back in if there is uproar) 3) fixes all

[PHP-DEV] [PATCH] allowing multiple namespaces per file plus namespaces with brackets

2007-08-20 Thread Gregory Beaver
Hi all, This patch is also available at http://pear.php.net/~greg/namespace.patch.txt The patch adds the syntax namespace { *stuff } and allows multiple namespaces per file with no performance penalty or added complexity as only 4 lines of code need to be changed, and 9 lines of code added to

Re: [PHP-DEV] [PATCH] allowing multiple namespaces per file plus namespaces with brackets

2007-08-20 Thread Gregory Beaver
Rasmus Lerdorf wrote: Sheez, guys, slow down a tad. Just because he says no performance penalty in the description, doesn't make it true. Unless I missed something in the patch, I don't see how I would resolve the symbols at compile-time now which means it has been moved to the executor and

Re: [PHP-DEV] [PATCH] allowing multiple namespaces per file plus namespaces with brackets

2007-08-20 Thread Gregory Beaver
Rasmus Lerdorf wrote: Right, which breaks the single-namespace per file rule. Opcode caches work on a per-file basis, so I know for a single op_array that I will never have to worry about a secondary namespace lookup because I know up front which namespace I am in. By allowing multiple

[PHP-DEV] PEAR .phars upgraded

2007-08-18 Thread Gregory Beaver
Hi Ilia and list, Just to let you know, I just uploaded fixed versions of install-pear-nozlib.phar and go-pear.phar (finally) for use with the installation tarballs of PHP 5.2.4. I have tested them on linux 64 bit, linux 32 bit, and windows 32 bit. I would appreciate someone with mac OS X and

Re: [PHP-DEV] reserved word alert

2007-08-17 Thread Gregory Beaver
Ralph Schindler wrote: Hey David Lucas, I brought this up a year ago on the list here: http://marc.info/?t=11472819373r=1w=2 Essentially, the trend will continue to be that as keyword requiring features are added, the global naming space will continue to become smaller and less

Re: [PHP-DEV] [Fwd: [PHP-CVS] cvs: php-src /ext/standard formatted_print.c]

2007-08-17 Thread Gregory Beaver
Antony Dovgal wrote: Ilia? Greg? Any comments? On 14.08.2007 15:42, Antony Dovgal wrote: This patch breaks PEAR phar install on 64bit. From what I can see in the source code, it compares data in the phar with the result of sprintf(%u..), which is different on 32bit and 64bit because

Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

2007-08-16 Thread Gregory Beaver
Hi, All of the debate over whether this is a true namespace implementation is in my opinion completely bogus (translate: I think namespace is a fine choice for the reserved word, and package is a dangerously misleading choice), but since there is so much noisy dissent, I have an alternative

[PHP-DEV] Re: Creating a class in a php extension

2007-06-19 Thread Gregory Beaver
Jordan Wambaugh wrote: I've just recently begun writing PHP extensions for the first time. Sara Golemon's article on extension development has been a priceless resource for me, but I haven't been able to find any documentation on how to define a class, give it methods and properties etc

[PHP-DEV] bug tracker merging

2007-05-30 Thread Gregory Beaver
Hi all, I'm a bit concerned by the headlong rush to refactor phpbugsweb to include PEAR and PECL bugs. The concept is fine by me, but starting with phpbugsweb as the starting point is a big mistake if you plan to include PEAR bugs. The PEAR bug tracker has several killer features that you will

Re: [PHP-DEV] bug tracker merging

2007-05-30 Thread Gregory Beaver
Steph Fox wrote: Hey Greg, I'm a bit concerned by the headlong rush to refactor phpbugsweb to include PEAR and PECL bugs. DON'T PANIC! There's not really a headlong rush to combine them all, it's just Marcus brainstorming and me agreeing for the sake of the PECL devs (especially but not

Re: [PHP-DEV] $var::$static

2007-05-26 Thread Gregory Beaver
Arnold Daniels wrote: Hi, I agree that $this::$var isn't really logical, since $this is an object and not a class name. But I do not see why $class::$var shouldn't work, or $class::$method() for that method. You can also do $function(). Also I want to suggest that brackets can be used

Re: [PHP-DEV] [RFC] Starting 5.3

2007-05-08 Thread Gregory Beaver
Stanislav Malyshev wrote: I think it is a good reason. There are plenty of tool-like PHP applications. Not having to install these, but just be able to I know one - PEAR. And it's kinds special because it's library installer. What others are there? phpdocumentor, phpunit, phpcodesniffer,

Re: [PHP-DEV] [RFC] Starting 5.3

2007-05-08 Thread Gregory Beaver
Pierre wrote: I'm in general in favour of phar but I don't think we should start 5.3 for it. I don't think either that it is stable enough to be bundled. I doubt it is possible to have a stable package in only three public releases (even the first public release was already marked stable).

Re: [PHP-DEV] [RFC] Starting 5.3

2007-05-08 Thread Gregory Beaver
Stanislav Malyshev wrote: include to work on those. Making a hack in PHP to allow phar:// streams to work is a bad idea, a C-extension can easily work here. So from now on, every time we would want to user stream we'd have to do C extension and all user stream functionality in PHP is just

Re: [PHP-DEV] [RFC] Starting 5.3

2007-05-07 Thread Gregory Beaver
Lester Caine wrote: As for phar? It sounds a little like PDO. No one has time to work on the Firebird PDO driver because we still need the main driver to provide the functions PDO does not support. Proper discussion and development of elements that are planned to become main stream would be

Re: [PHP-DEV] [RFC] Starting 5.3

2007-05-07 Thread Gregory Beaver
Antony Dovgal wrote: On 05/07/2007 04:18 PM, Lukas Kahwe Smith wrote: Marcus Boerger wrote: Well alot of people make use of our PEAR project. It comes with a bunch of nice sub projects. And even some external (as in non PHP) applications and projects make use of it. Providing a better

Re: [PHP-DEV] [RFC] Starting 5.3

2007-05-07 Thread Gregory Beaver
Lester Caine wrote: Gregory Beaver wrote: Phar is not yet perfect, but is also not NEARLY as complex as PDO. There is no comparison. The 'comparison' was in the way these packages get added without proper investigation ;) Someone decides that THIS is how it will be done, and that is what

[PHP-DEV] how does Phar actually work?

2007-05-07 Thread Gregory Beaver
Hi, There has been a bit of inevitable FUD with phar. Although the manual (http://php.net/phar) describes a fair amount of how phar works, the design decisions are not documented. Originally, the phar stream wrapper was a userspace thing. Davey Shafik designed it to take advantage of a neat

Re: [PHP-DEV] [RFC] Starting 5.3

2007-05-07 Thread Gregory Beaver
Stefan Priebsch wrote: Stanislav Malyshev schrieb: All power to them, but why should they use phar as runtime format? Maybe we could agree on using phar as a means of deploying PHP code, as I pointed out earlier? Otherwise it seems, as Greg has pointed out, that PEAR as it is will become

Re: [PHP-DEV] [RFC] Starting 5.3

2007-05-07 Thread Gregory Beaver
Stefan Priebsch wrote: Gregory Beaver schrieb: Correction: the *installation* process for PEAR will have to be reverted to the way it worked in PHP 4. PEAR is unaffected by these changes. Which, from the end user's viewpoint, makes PEAR useless because they cannot install PEAR

[PHP-DEV] Re: how does Phar actually work?

2007-05-07 Thread Gregory Beaver
Gregory Beaver wrote: [snip] megabytes of information just to locate a file. The zip file format has the same limitation - the entire archive needs to be scanned. Both of these formats were not designed for random access in the way a traditional filesystem is designed. In fact, I could

[PHP-DEV] Re: PHP 5.2.2 RC1 Schedule

2007-04-02 Thread Gregory Beaver
Ilia Alshanetsky wrote: 5.2.2 release cycle is about to begin, with a first RC planned for this Thursday. If you have any major patches left over, please commit them as they will no longer be accepted for 5.2.2. Reminder: http://pear.php.net/~greg/halt fixes the buggy limitation on 1

[PHP-DEV] Re: CVS Account Request: tias

2007-03-22 Thread Gregory Beaver
(mat) Tias Guns wrote: I would like to help develop pear/PEAR_Frontend_Web, cellog asked me to apply confirmed, Greg -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] reminder, __HALT_COMPILER patch

2007-03-06 Thread Gregory Beaver
Hi, Don't forget, please review http://pear.php.net/~greg/halt for inclusion to fix the implementation of __HALT_COMPILER(). Greg -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Native Singleton Implementation

2007-03-05 Thread Gregory Beaver
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). -

[PHP-DEV] new test for php://input and patch for small flaw in run-tests.php

2007-02-16 Thread Gregory Beaver
Hi all, While porting improvements of run-tests.php into the pear run-tests command, I noticed that there are no tests for the php://input stream in PHP_5_2 (didn't look at HEAD yet), so I thought I would offer one if it is useful. At the same time, I found a flaw in the implementation of

[PHP-DEV] update to __HALT_COMPILER(); patch - 4 .phpt tests

2007-02-08 Thread Gregory Beaver
Hi, http://pear.php.net/~greg/halt/ contains the patch (unchanged and still against PHP_5_2) and 4 .phpt tests that prove it works. Greg -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] [PATCH] version 2, __HALT_COMPILER();

2007-02-07 Thread Gregory Beaver
Hi, The last patch version still allowed: ?php define('__COMPILER_HALT_OFFSET__', 1); ? which would break any __HALT_COMPILER(); Interestingly enough, the current implementation makes this script a fatal error: ?php define('__COMPILER_HALT_OFFSET__', 1); __HALT_COMPILER(); ? But not at the

[PHP-DEV] [PATCH] better implementation for __HALT_COMPILER();

2007-02-06 Thread Gregory Beaver
Hi, With the first release of pecl/phar, I have started thinking about the implementation of __HALT_COMPILER(); Currently, this code results in a fatal error: file1.php: ?php __HALT_COMPILER(); ? file2.php: ?php __HALT_COMPILER(); ? file3.php: ?php include 'file1.php'; include 'file2.php'; //

[PHP-DEV] Re: [PATCH] better implementation for __HALT_COMPILER();

2007-02-06 Thread Gregory Beaver
Gregory Beaver wrote: __COMPILER_HALT_OFFSET__. This does change behavior in that __COMPILER_HALT_OFFSET__ can only be used within the same file that it is defined. However, this is extremely unlikely to break any existing scripts since it was designed for self-contained installers

[PHP-DEV] Re: Syntactic improvement to array

2007-02-04 Thread Gregory Beaver
Andi Gutmans wrote: Hi, I thought I may have brought this up a long time ago but couldn't find anything in the archives. For a long time already I've been thinking about possibly adding a new syntax for array(...) which would be shorter. I'd suggest [...]. While I am usually not in favor

Re: [PHP-DEV] Is this what Stefan Esser was referring to ...?

2007-01-23 Thread Gregory Beaver
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-21 18:25:24 -0500: Personally I think PHP related projects should avoid using PHP in their name period as it causes far too many problems for the language itself, since most people fail to distinguish between PHP the language and project

Re: [PHP-DEV] Is this what Stefan Esser was referring to ...?

2007-01-23 Thread Gregory Beaver
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-23 08:59:46 -0600: Roman Neuhauser wrote: php.net distributes programs that violate the PHP license: e. g. PHPUnit or PHPDocumentor (see http://pecl.php.net). If php.net is ok with ignoring the license terms (and has been for

Re: [PHP-DEV] Is this what Stefan Esser was referring to ...?

2007-01-23 Thread Gregory Beaver
William A. Rowe, Jr. wrote: Stefan Esser wrote: It should be noted, that the PHP Group is not allowed to give anyone the right to use PHP in it's product name. It's called a Trademark. It may or may not be a Registered Mark, but both concepts exist carrying varying weight in any

Re: [PHP-DEV] Comments on PHP security

2007-01-16 Thread Gregory Beaver
Stanislav Malyshev wrote: In my opinion, it would be a pity to lose the design benefits of stream wrappers in the effort to gain more security when security can be gained without losing the benefits. I think it would be good to allow disabling all urls as Stefan suggested, but if there is a

[PHP-DEV] Re: CVS Account Request: saltybeagle

2006-12-13 Thread Gregory Beaver
Brett Bieber wrote: PEAR package... http://pear.php.net/pepr/pepr-proposal-show.php?id=461 verified, this is to maintain the newly accepted Services_W3C_HTMLValidator. Brett should be given karma for pear/Services_W3C_HTMLValidator Thanks, Greg -- PHP Internals - PHP Runtime Development

Re: [PHP-DEV] RE: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_2) / zend_compile.c

2006-10-21 Thread Gregory Beaver
Hi Ilia and everyone, E_DEPRECATED makes good sense - it can be a big warning flag that something will be removed, and will make it very easy to code around changes. Once something is E_DEPRECATED, however, it must stay that way, I agree with Ilia. The point of E_STRICT as originally stated was

Re: [PHP-DEV] a last plead

2006-10-20 Thread Gregory Beaver
+1 for reducing severity to E_STRICT Greg Wez Furlong wrote: I agree. Aside from making things difficult, these extra checks are using up CPU cycles when we don't otherwise care about the problems that are being highlighted. I've been out of the loop for a couple of months, so I'm really

Re: [PHP-DEV] Re: open_basedir enhancement, runtime tightening

2006-10-13 Thread Gregory Beaver
Tim Starling wrote: Pierre wrote: There is no issue with PEAR or any applications using include_path and relative paths in include/require. The system include_path, if any, paths should already be in the open_basedir. If they are not, you have to install the desired modules within your

<    1   2   3