Re: [PHP-DEV] Re: [PHP-CVS] cvs: CVSROOT / avail loginfo

2007-11-29 Thread Johannes Schlüter
On Thu, 2007-11-29 at 14:56 -0800, Stanislav Malyshev wrote: Having a clear and transparent contribution process is much more important to my eyes than good support for some company's products. No, it is not more important. 99.9% of PHP users don't care what process we have, they care

Re: [PHP-DEV] private properties ....

2007-11-30 Thread Johannes Schlüter
Hi, On Sat, 2007-12-01 at 00:24 +0800, Jingcheng Zhang wrote: Hi Etienne, Is private only an access limiter between classes?If so, I think private properties and methods should be OK to be extended into the child class, but currently that's not the case, and there is also a bug here,

Re: [PHP-DEV] Re: [PHP-CVS] cvs: CVSROOT / avail loginfo

2007-11-30 Thread Johannes Schlüter
Hi, On Thu, 2007-11-29 at 21:16 +0200, Jacques Marneweck wrote: We do have peer-review after all. Not on CLA'd code we don't. Steph the CLA seems to just relate to the docbook xml specifications for PDO. If the spec is CLAd what will the implementation be? Do you expect a spec needs

[PHP-DEV] Re: private properties ....

2007-11-30 Thread Johannes Schlüter
Hi Marco, On Fri, 2007-11-30 at 12:43 +0100, Marco Kaiser wrote: Conclusion: 1. Why i can access a private property from a different class instance (name) but same type ? $aa and $bb are instances of aaa but not the same. Since PHP's object model is based n the class concept and these

[PHP-DEV] Re: namespace improvements to be committed very soon - final review

2007-12-12 Thread Johannes Schlüter
Hi, On Tue, 2007-12-11 at 17:13 -0600, Gregory Beaver wrote: Hi, I've been furiously working behind the scenes with Stas and Dmitry, and have some enhancements to namespaces in the form of 2 patches. 1) multiple namespaces per file 2) use ::name; 1) multiple namespaces per file

Re: [PHP-DEV] namespace improvements to be committed very soon - final review

2007-12-12 Thread Johannes Schlüter
On Tue, 2007-12-11 at 22:33 -0600, Gregory Beaver wrote: Any brackets adds another set of shift/reduce to the parser, regardless of how the syntax of the language is defined. That's not all with that syntax. ?php { class foo { } } ? Leads to a delayed declaration which is done at

Re: [PHP-DEV] Re: [PHP-CVS] cvs: CVSROOT / avail loginfo

2007-12-20 Thread Johannes Schlüter
Hi, On Thu, 2007-12-20 at 11:40 -0800, Stanislav Malyshev wrote: currently the users seem to live quite good with the licenses granted by the PHP License 3.01. Quite good can be always made better. For example, you may claim PDO is perfect and doesn't need any help from DB vendors, and

[PHP-DEV] Re: Fixed and enhancements for php odbc layer

2007-12-20 Thread Johannes Schlüter
Hi Patrick, On Thu, 2007-12-20 at 18:53 +0100, iODBC Maintainer wrote: As maintainer of the iODBC driver manager project i have some fixed and enhancements for the php odbc layer that i would like to submit for review and inclusion into the code base. [...] Please let me know what the

[PHP-DEV] Re: Fixed and enhancements for php odbc layer

2007-12-25 Thread Johannes Schlüter
Hi Patrick, On Thu, 2007-12-20 at 21:49 +0100, iODBC Maintainer wrote: I have attached 3 diffs as txt files. Each of the files start with a short explanation of what the patch is supposed to do, so it is easier for anyone else to see what i did. Tanks, I don't see a problem with these

Re: [PHP-DEV] spl_autoload vs __autoload

2008-01-01 Thread Johannes Schlüter
Hi, On Mon, 2007-12-31 at 22:45 +0100, Marcus Boerger wrote: Hello Johannes, I agree with Pierre here. How about finally making SPL built in always like ext/standard? First some statistics: According to my numbers[1], which are as wrong as most other statistics about such stuff. 1% (36

RE: [PHP-DEV] Garbage collector patch

2008-01-03 Thread Johannes Schlüter
Hi, On Tue, 2007-12-18 at 09:57 -0800, Andi Gutmans wrote: Uhm I meant 5.3. I guess we can commit it but as you know, reverting this kind of stuff later is a headache people don't like doing. With this patch it's not too bad because besides the macros which are committed already it's mostly

Re: [PHP-DEV] type hinting

2008-01-06 Thread Johannes Schlüter
Hi, On Sun, 2008-01-06 at 21:24 +0100, Marcus Boerger wrote: That said I would only agree to type hints if we make them respect existing PHP conversion rules. Which we can't really do. Think about Mikko's example: $b = '5'; function foo( int $a ) { echo gettype( $a ); } foo( $b ); echo

[PHP-DEV] Re: php ldap wit exop patch and missing ZSTR

2008-01-07 Thread Johannes Schlüter
Hi Faraz, On Mon, 2008-01-07 at 20:53 +0500, Faraz Khan wrote: Dear all, I'm trying to apply the php ldap EXOP patch from : http://www.sys-net.it/~ando/Download/#PHP The patch defines a zstr in ldap.c at line 1731 as obvious below. ZSTR no longer appears to be defined anywhere in php

[PHP-DEV] Re: Array syntax []

2008-01-11 Thread Johannes Schlüter
Hi, On Fri, 2008-01-11 at 12:40 +0300, Max Antonov wrote: I use PHP since version 5.0 release I'd like use this syntax $a = [ 2,6,9 ]; $b = ['a'=1 , 'v'='string']; foo(['bar'=2, 'test'=null]); The last line is exactly why I won't like such a syntax. Just consider the a bit worse call like

[PHP-DEV] SUMMARY: Array syntax

2008-01-11 Thread Johannes Schlüter
Hi, I did a short count of the votes about the Array Syntax shortcut on the list. I hope I've got everybody right. The results look like that: yesno -- With php-src karma 510 Others16 9

Re: [PHP-DEV] SUMMARY: Array syntax

2008-01-11 Thread Johannes Schlüter
Hi Pierre, On Fri, 2008-01-11 at 18:37 +0100, Pierre wrote: Yes, you forgot me. And restricting the right to vote to php-src only is respectless for all the documentation people. Well, any restriction there is hard. I know hat the php-src karma is not the best criteria. We have people with

Re: [PHP-DEV] ifsetor like expression in php6

2008-01-26 Thread Johannes Schlüter
Hi, On Sat, 2008-01-26 at 16:23 -0500, Robert Cummings wrote: And I thought the whole point was for it to not generate a notice. Isn't that why the name ifsetor was chosen? Since it's supposed to work like isset() by not generating notices? This thing is not called ifsetor. From the commit

Re: [PHP-DEV] Splitting the subject: the PECL/PHP relationship

2008-02-03 Thread Johannes Schlüter
Hi, On Sun, 2008-02-03 at 12:24 +0100, Marcus Boerger wrote: MySQLND was the last extension started in php-src and I don't even remember when this was discussed (though in the current structure I like it there pretty much). Actually it was developed internally to MySQL and offered for

Re: [PHP-DEV] faster public domain MD5 implementation

2008-02-05 Thread Johannes Schlüter
Dmitry, On Tue, 2008-02-05 at 14:34 +0300, Dmitry Stogov wrote: /* * * This is an OpenSSL-compatible implementation of the RSA Data Security, * * Inc. MD5 Message-Digest Algorithm (RFC 1321). ** [...] looks like your editor has gone wild on that comment in md5.c ;-) johannes --

[PHP-DEV] Re: get_magic_quotes_gpc, get-magic-quotes-runtime in head, get a final decision

2008-02-05 Thread Johannes Schlüter
On Tue, 2008-02-05 at 21:23 +0100, Pierre Joye wrote: +1: remove them (as it is now in HEAD) -1: Restore them and always return FALSE (not 0) 0: I don't care, do what you wish, I never use them anyway +1 - remove them Users can easily add these themselves, (if (!

Re: [PHP-DEV] [patch] expose PHP version details as constants

2008-02-11 Thread Johannes Schlüter
On Mon, 2008-02-11 at 17:51 +0100, Pierre Joye wrote: Yes that name is fine, bunt wondering: When/Where do you get this information and where from? What's the impact for build snapshots/releases? Afaik the scripts for that work on cvs exports where Good point, I did not check the CVS doc

Re: [PHP-DEV] [patch] expose PHP version details as constants

2008-02-11 Thread Johannes Schlüter
Pierre, On Mon, 2008-02-11 at 15:42 +0100, Pierre Joye wrote: On Feb 11, 2008 3:20 PM, Pierre Joye [EMAIL PROTECTED] wrote: On Feb 9, 2008 2:39 PM, Marcus Boerger [EMAIL PROTECTED] wrote: Hello Pierre, yeah nice idea. I am wondering if you might want to add the cvs tag, too?

Re: [PHP-DEV] [patch] expose PHP version details as constants

2008-02-12 Thread Johannes Schlüter
Hi, On Mon, 2008-02-11 at 22:30 -0500, Edward Z. Yang wrote: Hello all, I was documenting the __DIR__ patch, and I ran across some curious behavior when the PHP file was in the Windows filesystem root: C:\test.php ?php echo __DIR__; ? Output: C:\ Is this intended? What else would

[PHP-DEV] Re: QA reports

2008-02-13 Thread Johannes Schlüter
Hi, On Wed, 2008-02-13 at 16:00 +, zoe wrote: I think fixing this is a one line change to qaweb/buildtest-process.php, I'm happy to make that if there is agreement. Please let me know if it isn't as simple as this. As somebody said on IRC, too: Please also change run-tests.php for

[PHP-DEV] OpenID, big_int, OpenSSL

2008-02-25 Thread Johannes Schlüter
Hi, OpenID is a system gaining more and more support in the industry so PHP should have better support for it, too. some time ago Wez proposed[1] a patch for OpenSSL exporting some big-number-math and crypto stuff from there. Some people thought that that's no clean solution and it would be

Re: [PHP-DEV] OpenID, big_int, OpenSSL

2008-02-25 Thread Johannes Schlüter
On Mon, 2008-02-25 at 23:11 +0100, Pierre Joye wrote: Hi, On Mon, Feb 25, 2008 at 10:31 PM, Johannes Schlüter [EMAIL PROTECTED] wrote: Hi, OpenID is a system gaining more and more support in the industry so PHP should have better support for it, too. some time ago Wez proposed[1

Re: [PHP-DEV] [RFC] Replace the flex-based scanner with an re2c [1] based lexer

2008-03-03 Thread Johannes Schlüter
Hi Derick, On Mon, 2008-03-03 at 09:28 +0100, Derick Rethans wrote: On Sun, 2 Mar 2008, Marcus Boerger wrote: However, we had to drop multibyte support as well as the encoding declare. Just wondering, why did you have to drop the declare(encoding=...) ? It's just ignored in PHP 5.x -

Re: [PHP-DEV] [RFC] Replace the flex-based scanner with an re2c [1] based lexer

2008-03-03 Thread Johannes Schlüter
Hi, On Sun, 2008-03-02 at 14:47 -0800, Stanislav Malyshev wrote: Hi! be much easier, switching to re2c promises a much faster lexer. Actually, without any specific re2c optimizations we already get around a 20% scanner I think 20% faster is very cool. However, as I understand re2c is

[PHP-DEV] Re: PHP 5.3 Autoload+Namespaces+Functions incorret (atleast wierd) behaviour.

2008-03-03 Thread Johannes Schlüter
Hi Fredrik, On Fri, 2008-02-29 at 16:02 +0100, =?ISO-8859-1?Q?Fredrik_Holmstr=F6m?= wrote: Basicly, the call is this: Demo::Functions::test(); where both Demo and Functions are namespaces, and test() is a function inside the Demo::Functions namespace. If you have an autoload handler here and

Re: [PHP-DEV] Re: PHP 5.3 Autoload+Namespaces+Functions incorret (atleast wierd) behaviour.

2008-03-03 Thread Johannes Schlüter
Hi Marcus, On Mon, 2008-03-03 at 13:27 +0100, Marcus Boerger wrote: new namespace::class() new namaespace::namedspace::class() and so on, or: namespace::class::functoin() namespace::function() and so on. That is, when detecting braces after it and a new in front than it is a class.

[PHP-DEV] 5.3 Release Planning

2008-03-06 Thread Johannes Schlüter
Hi all, recently there were quite a few proposals about stuff for 5.3. If we implement them all we won't finish in a soonish time and we get new ideas postponing the 5.3 release therefore the following: - Scanner based on re2c: Going to re2c promises to make maintenance simpler and increase

[PHP-DEV] Re: 5.3 Release Planning

2008-03-07 Thread Johannes Schlüter
Hi, On Thu, 2008-03-06 at 20:43 -0600, Gregory Beaver wrote: Just a quick note: I'd like to consider another possible approach, having pecl/phar synced from stable pecl release. Yes, that's what I'd like, too. Te problem there is that developers using CVS checkouts should get a CVS checkout f

[PHP-DEV] Re: Loading PHP Files from a PHP Extension

2008-03-08 Thread Johannes Schlüter
Hi Jacob, On Sat, 2008-03-08 at 01:50 -0600, Jacob Santos wrote: Anyway, I remember once upon a time a PHP extension which loaded PHP files within the PHP extension MINIT or RINIT function. I had thought it was SPL which did this, but I appear to be wrong. Searching for material on the

[PHP-DEV] Re: [RFC] Namespace syntax decision

2008-03-22 Thread Johannes Schlüter
Hi, On Fri, 2008-03-21 at 22:36 +0100, Marcus Boerger wrote: PHP is very close to Java and C++ in terms of Syntax. And many of our users are familiar with one or even both of them. Also we have a tendency to especially take syntax from those two or be in line with those two languages. That

Re: [PHP-DEV] short_open_tag

2008-03-22 Thread Johannes Schlüter
Hi, On Fri, 2008-03-21 at 21:13 +0100, Marcus Boerger wrote: Hello Stanislav, Friday, March 21, 2008, 9:08:02 PM, you wrote: However the '?echo' I mentioned would work. We could also go for something like '?phpecho'. I for one would really appreciate it. And I would not ?phpecho is

[PHP-DEV] Re: [PECL-DEV] About that PECL versioning thing

2008-03-23 Thread Johannes Schlüter
Hi, On Sun, 2008-03-23 at 13:01 +0100, Hannes Magnusson wrote: On Sun, Mar 23, 2008 at 3:51 AM, Steph Fox [EMAIL PROTECTED] wrote: does anyone have any objection to the proposal at http://wiki.php.net/rfc/peclversioning? The first step in fixing the core-pecl relationship? \o/ Looks

Re: [PHP-DEV] Re: PHP's Zend multibyte support

2008-03-23 Thread Johannes Schlüter
Hi, On Sun, 2008-03-23 at 15:26 +0100, Hannes Magnusson wrote: You can provide a --SKIPIF-- section to detect MB support (http://qa.php.net/write-test.php ). --SKIPIF-- ?php if (!in_array(detect_unicode, array_keys(ini_get_all( { die skip Requires --enable-zend-multibyte

Re: [PHP-DEV] Inclusion of PHP LiteSpeed SAPI in the standard PHP distribution?

2008-03-26 Thread Johannes Schlüter
Hi, On Wed, 2008-03-26 at 16:07 -0400, George Wang wrote: OK, let's back to the topic, is there any conclusion on this topic yet? I certainly would like not to miss the release of 5.3 and ready to help with any issue. I think it makes sense, you, as the server's vendor, supports it and

[PHP-DEV] Re: Backporting to 5_3

2008-03-26 Thread Johannes Schlüter
On Wed, 2008-03-26 at 10:04 -0300, Felipe Pena wrote: Hello, I would like know which itens below needs be backported to 5_3: - Added runtime JIT auto-globals fetching and caching. (Dmitry, Sara) Not sure if this has benefits without the encoding stuff which is planned for PHP 6. - Added

Re: [PHP-DEV] Re: [RFC] Namespace syntax decision

2008-03-26 Thread Johannes Schlüter
On Tue, 2008-03-25 at 23:35 -0700, Paul Chandler wrote: Can't both (brackets and non) be supported? NO! This just creates confusion. johannes -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: [RFC] Namespace syntax decision

2008-03-26 Thread Johannes Schlüter
Hi, On Fri, 2008-03-21 at 22:36 +0100, Marcus Boerger wrote: we all were asked to stop discussing syntax of namespaces as we were told that we would decide after the namespace functionality was fully implemented. Now I think that the functionallity is pretty much settled we should revisit

Re: [PHP-DEV] Re: Backporting to 5_3

2008-03-26 Thread Johannes Schlüter
On Thu, 2008-03-27 at 00:48 +0100, Pierre Joye wrote: On Thu, Mar 27, 2008 at 12:34 AM, Johannes Schlüter [EMAIL PROTECTED] wrote: On Wed, 2008-03-26 at 10:04 -0300, Felipe Pena wrote: Hello, I would like know which itens below needs be backported to 5_3: - Added

Re: [PHP-DEV] Re: Backporting to 5_3

2008-03-26 Thread Johannes Schlüter
On Thu, 2008-03-27 at 01:01 +0100, Pierre Joye wrote: On Thu, Mar 27, 2008 at 12:54 AM, Johannes Schlüter [EMAIL PROTECTED] wrote: And compile time JIT is fine as long as we don't have to care for encoding, right? So this change won't be needed in 5.3. Except when one sends a xxMB

[PHP-DEV] Re: [PHP-QA] BC break with php 5.2.6

2008-03-31 Thread Johannes Schlüter
Marcus, On Mon, 2008-03-31 at 17:14 +0200, Marcus Boerger wrote: Hello Derick, it is a BUG FIX. Not fixing it means more people will turn it into a feature and we will never be able to remove it. Becuase next time you will say we cannot remove it in a minor version as by then you

[PHP-DEV] Re: Is it possible to add support for multiple extensions directory ?

2008-03-31 Thread Johannes Schlüter
Hi Sririam, On Mon, 2008-03-31 at 13:56 -0700, Sriram Natarajan wrote: In this regard to fit more with Solaris file layout traditions, we would like to keep the core PHP modules under /usr/php5/modules and the user specific downloaded PECL/PEAR modules under /var/php5/modules. However,

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

2008-04-10 Thread Johannes Schlüter
On Wed, 2008-04-09 at 10:14 +0200, Olivier Bonvalet wrote: public function __construct( $dsn, $user, $password ) { try { parent::__construct( $dsn, $user, $password ); } catch( PDOException $e ) { echo 'there is an error... but continue the

Re: [PHP-DEV] PHP 5.3 == PHP 6?

2008-04-11 Thread Johannes Schlüter
Hi, On Fri, 2008-04-11 at 16:07 -0400, (Wietse Venema) wrote: According statistics at nexen.net, PHP4 is now 68% of the installed base (8 years of deployment) and PHP5 is 32% (almost 4 years). The lesson I draw from this is that a major release every couple years would heavily fragment the

[PHP-DEV] Welcome GSoC students!

2008-04-21 Thread Johannes Schlüter
Hi, Google just announced the final assignments for their Summer of Code program for this year. On behalf of the PHP project I'd like to welcome our students and give you some general information about the project. The following projects have been accepted for the PHP project: Zend LLVM

Re: [PHP-DEV] Re: Building PHP. Clean builds. Noisy redefines.

2008-04-22 Thread Johannes Schlüter
On Tue, 2008-04-22 at 13:57 +0200, Hannes Magnusson wrote: On Tue, Apr 22, 2008 at 1:53 PM, Elizabeth M Smith [EMAIL PROTECTED] wrote: Hmmm - I don't get the first set of long to short warnings - what compiler/sdk are you using? Second set of (highly annoying) warnings is due to a

Re: [PHP-DEV] Welcome GSoC students!

2008-04-22 Thread Johannes Schlüter
On Tue, 2008-04-22 at 14:23 -0400, Daniel Brown wrote: Of interesting note: the list rejected my earlier (second) reply to your message, Johannes. It claimed the Google BlogSpot URL was a SPAMMY URL. looks like the same happened to my mail - while I didn't get any response :-) For all:

Re: [PHP-DEV] Inclusion of PHP LiteSpeed SAPI in the standard PHP distribution?

2008-04-22 Thread Johannes Schlüter
Hi George, On Tue, 2008-04-08 at 10:12 -0400, George Wang wrote: Either a symlink or moving the directory physically to where other SAPI code are should work. I can check in the code to a different location if need. Please let me know if anything I can help. :-) Derick just copied it on

[PHP-DEV] Re: Unresolved external symbol __mysqlnd_debug

2008-04-23 Thread Johannes Schlüter
in PHP, I've just committed a fix and my windows build seemed to work. Please do a cvs up and try again, thanks, johannes -- Johannes Schlüter, Software Engineer MySQL GmbH, Dachauer Str.37, D- 80335 München, www.mysql.com Geschäftsführer: Kaj Arnö - HRB München 162140 -- PHP Internals - PHP

Re: [PHP-DEV] Calling a class constructor

2008-05-02 Thread Johannes Schlüter
On Fri, 2008-05-02 at 12:03 +0200, Marcus Boerger wrote: Hello Antony, Johannes, seeing this thread I agree. So that makes the list: PCRE, Reflection, SPL. Johannes? I was under the impression that was already the case for Reflection, so I don't mind. johannes -- PHP Internals - PHP

[PHP-DEV] Re: [HEADS UP] pecl/phar is now ext/phar

2008-05-13 Thread Johannes Schlüter
Hi, On Mon, 2008-05-12 at 16:45 -0500, Gregory Beaver wrote: It's time for helly's birthday present from me (and indirectly, Derick, who did the cp -r) :). As Johannes requested, pecl/phar has been copied to php-src/ext/phar, Great work! :-) johannes -- PHP Internals - PHP Runtime

Re: [PHP-DEV] [HEADS UP] pecl/phar is now ext/phar

2008-05-13 Thread Johannes Schlüter
On Tue, 2008-05-13 at 14:41 +0100, Steph Fox wrote: Sorry Hannes, should've kept it on-list. The clue was in Tony's mail, I'm just testing a fix now. Access denied, insufficient karma. Fix is in PECL CVS, what do I do now? Mail in a patch against 5_3? You should try again, karma

[PHP-DEV] Re: unicode.semantics ad infinitum

2008-05-14 Thread Johannes Schlüter
Steph, On Wed, 2008-05-14 at 13:59 +0100, Steph Fox wrote: I wrote a macro to allow us to use the same code for the extension in both branches, but it occurs to me that the zstr union definition might change or even disappear when PHP 6 becomes Unicode-only. Is that likely? I don't know.

[PHP-DEV] Re: Proposal for a PHP-BASED Make facility

2008-05-15 Thread Johannes Schlüter
Hi, On Thu, 2008-05-15 at 00:49 -0400, Hector Santos wrote: - All that is needed with a source distribution or as a separate distribution, is a PHPMAKE package that might include a root folder: phpmake/bin minimum php binaries for the platform

Re: [PHP-DEV] Re: Proposal for a PHP-BASED Make facility

2008-05-15 Thread Johannes Schlüter
Hi, On Thu, 2008-05-15 at 04:21 -0400, Hector Santos wrote: On Thu, 2008-05-15 at 00:49 -0400, Hector Santos wrote: - All that is needed with a source distribution or as a separate distribution, is a PHPMAKE package that might include a root folder: phpmake/bin

Re: [PHP-DEV] Short syntax for array literals [...]

2008-05-22 Thread Johannes Schlüter
Hi, On Thu, 2008-05-22 at 12:33 +0200, Pierre Joye wrote: Agreed, we should simply go through a vote and be done with that. Vote until all are annoyed and don't vote against it anymore just to stop voting? (it's less annoying to have it than vote about it every two months) There was some voting

Re: [PHP-DEV] Unicode progress [Was: unicode.semantics ad infinitum]

2008-05-24 Thread Johannes Schlüter
Hi, On Sat, 2008-05-24 at 13:55 +0100, Steph Fox wrote: Warning: crc32() expects parameter 1 to be strictly a binary string, Unicode string given in ... Surely if a function's *expecting* a binary string it should do a silent conversion, and only throw a warning if the conversion fails? I

Re: [PHP-DEV] Unicode progress [Was: unicode.semantics adinfinitum]

2008-05-24 Thread Johannes Schlüter
Steph, On Sat, 2008-05-24 at 20:37 +0100, Steph Fox wrote: Heya Johannes, For some functions taking binary strings is critical for working nicely with an automatic conversion in this case crc32(uäöü) and crc32(bäöü) would give completely different results depending on the

Re: [PHP-DEV] Re: Short syntax for array literals [...]

2008-05-29 Thread Johannes Schlüter
On Wed, 2008-05-28 at 09:19 +0200, Derick Rethans wrote: Right, and I will add immediately to my coding standard that this is forbidden to use. ... which doesn't help people having to read code without being able to influence the coding style... johannes -- PHP Internals - PHP Runtime

RE: [PHP-DEV] Algorithm Optimizations - string search

2008-06-11 Thread Johannes Schlüter
Hi, On Wed, 2008-06-11 at 01:01 -0700, Texin, Tex wrote: When I looked at the code, I assumed that it wasn't intended for international use I'll have to go back and look to give you details, but it doesn't work for international use or unicode. It would be ok for 8859-1. That's the

Re: Fw: [PHP-DEV] Dummy calls for 5.3.0 up? [Was: HEAD tests broken under Windows]

2008-06-12 Thread Johannes Schlüter
Hi, On Thu, 2008-06-12 at 10:53 +0100, Steph Fox wrote: There is far too much of this kind of thing. Can we please consider adding dummies into at least 5.3.0 and possibly even the 5_2 branch for: is_binary() is_unicode() These can be easily emulated using PHP like if

Re: [PHP-DEV] extensions status, to move to pecl or to drop

2008-06-12 Thread Johannes Schlüter
Hi, On Thu, 2008-06-12 at 16:31 +0200, Pierre Joye wrote: * Extension being deleted (not removed, a cvs rm will be done) mhash, no impact as we provide a compatibility layer via ext/hash (Thanks to Scott) We should keep this somewhere in Siberia like we did with other extensions we

Re: [PHP-DEV] towards a 5.3 release

2008-07-02 Thread Johannes Schlüter
On Wed, 2008-07-02 at 22:24 +0200, Hannes Magnusson wrote: On Wed, Jul 2, 2008 at 22:00, Lukas Kahwe Smith [EMAIL PROTECTED] wrote: @Philipp: Since you are the god of documentation .. How are things looking on the scratchpad [8] you started? Philip, one p, recently moved to Nicaragua (last

Re: [PHP-DEV] [RFC] Namespaces for internal classes

2008-07-04 Thread Johannes Schlüter
On Fri, 2008-07-04 at 10:28 +0200, Lars Strojny wrote: Hi Derick, Am Freitag, den 04.07.2008, 10:14 +0200 schrieb Derick Rethans: I'd say this is a BIG no-no. PHP owns the top-level namespace. Why make things harder? And on top of that, you're suggesting just to break code for no good

Re: [PHP-DEV] [RFC] Closures: updated proposal and patch

2008-07-04 Thread Johannes Schlüter
Hi, On Thu, 2008-07-03 at 22:30 +0400, Dmitry Stogov wrote: I don't see big problems with closures. The patch is simple and stable. It's main part isolated in zend_closures.c and it doesn't affect other parts of engine. Changes too the languages always introduce some side effects and

Re: [PHP-DEV] [RFC] Closures: updated proposal and patch

2008-07-04 Thread Johannes Schlüter
On Fri, 2008-07-04 at 11:31 +0200, Lars Strojny wrote: Hi Johannes, Am Freitag, den 04.07.2008, 11:18 +0200 schrieb Johannes Schlüter: Now such a check isn't possible, all reflection information on the callback I can get is that it is an object of type Closure having a method __invoke

Re: [PHP-DEV] [RFC] Namespaces for internal classes

2008-07-04 Thread Johannes Schlüter
Hi, On Fri, 2008-07-04 at 11:26 +0200, Lars Strojny wrote: Am Freitag, den 04.07.2008, 11:15 +0200 schrieb Johannes Schlüter: [...] That's not entirely true, there are minor BC breaks: Let's say Bar is an alias for Foo::Bar. now to $r = new ReflectionClass('Bar'); echo $r-getName

Re: [PHP-DEV] win32 snaps back

2008-07-05 Thread Johannes Schlüter
Hi, On Sat, 2008-07-05 at 18:33 +0200, Pierre Joye wrote: The win32 snaps were broken since the 24th of June. Except the 5.3 apache2filter and the 5.3 installer snapshots, everything is back online. Thanks for that, while working on the Windows stuff: Do you think you can find a good way to

Re: [PHP-DEV] New string functions: str_startswith() and str_endswith()

2008-07-21 Thread Johannes Schlüter
On Mon, 2008-07-21 at 22:06 +0200, Paweł Stradomski wrote: W liście Rasmus Lerdorf z dnia poniedziałek, 21 lipca 2008: It also isn't any shorter: if(str_endswith($path,'.php')) vs. if(substr($path,-4)=='.php') Only if comparing to a static string, but not for this case:

Re: [PHP-DEV] Volunteers for Subversion 1.5 conversion of cvs.php.net?

2008-07-25 Thread Johannes Schlüter
On Thu, 2008-07-24 at 20:25 -0400, Gwynne Raskind wrote: Yes, I read that. But the conversion of the repository itself is only half the battle. There are a bunch of scripts in CVSROOT that need to be ported over to SVN somehow. My plan was to work on those next. not only CVSROOT,

Re: [PHP-DEV] CVS to SVN Migration

2008-07-25 Thread Johannes Schlüter
On Fri, 2008-07-25 at 10:26 +0200, David Soria Parra wrote: However I think we should provide the infrastructure for developers to setup a dvcs. I dont know if we want to standardize on a specific one. But collaboration on exterimental stuff that requires a dvcs should be possible on

[PHP-DEV] towards 5.3 alpha1

2008-07-26 Thread Johannes Schlüter
Hello all, As some of you may have noticed the 5.3 todo list [1] has been reworked a bit. There is now a list for alpha1 and some more items for alpha2. As previously announced Lukas and I are allowing low risk self contained work to continue until alpha2 on a case by case basis. However

Re: [PHP-DEV] DOMDocument Extension: Output current nodelist

2008-07-29 Thread Johannes Schlüter
On Wed, 2008-07-30 at 00:23 +0200, Benjamin Eberlei wrote: I recognized at work today that DOMDocument has two function saveHTML and saveHTMLFile, but only a save function for the unfiltered xml node structure to save to a file although libxml provides the functionality to export the data to

Re: [PHP-DEV] Making PHP upload hooks available through session variables?

2008-07-30 Thread Johannes Schlüter
Hi, On Wed, 2008-07-30 at 13:46 -0700, Tore B. Krudtaa wrote: As most of you probably know Rasmus Lerdorf made som upload hooks available in PHP 5.2 some long time back. This was great news for those that wanted more control of uploads and/or wanted to give real time feedback to client

Re: [PHP-DEV] [PATCH] New functions: array_replace[_recursive]

2008-07-31 Thread Johannes Schlüter
Matt, On Tue, 2008-07-22 at 10:52 -0500, Matt Wilmas wrote: Adding these two array functions has been on the TODO for a while, The patch can quite easily be tricked into an endless recursion of php_array_replace_recursive() calls which will segfault: $ php -r '$a = array(); $a[] = $a; $b =

Re: [PHP-DEV] [PATCH] New functions: array_replace[_recursive]

2008-07-31 Thread Johannes Schlüter
Hi, On Thu, 2008-07-31 at 11:48 -0500, Matt Wilmas wrote: Ugh, I hate that reference/recursion stuff! I have a hard time following what's happening, and am not sure how some of those checks, etc. even work in php_array_merge() (which I was working from). :-/ I tried changing a few parts,

Re: [PHP-DEV] [PATCH] New functions: array_replace[_recursive]

2008-07-31 Thread Johannes Schlüter
Matt, On Thu, 2008-07-31 at 20:06 +0200, Johannes Schlüter wrote: On Thu, 2008-07-31 at 11:48 -0500, Matt Wilmas wrote: Ugh, I hate that reference/recursion stuff! I have a hard time following what's happening, and am not sure how some of those checks, etc. even work in php_array_merge

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src /ext/date config.w32 /ext/date/lib parse_iso_intervals.re

2008-08-04 Thread Johannes Schlüter
Hi, On Sun, 2008-08-03 at 22:15 +0200, Pierre Joye wrote: Hi Derick, On Sun, Aug 3, 2008 at 6:34 PM, Derick Rethans [EMAIL PROTECTED] wrote: you're not reading what I said. It does not make one single bit of sense that a short function gives problems while an enormously long function

Re: [PHP-DEV] [PATCH] Closures and reflection improvements

2008-08-04 Thread Johannes Schlüter
Christian, On Mon, 2008-08-04 at 11:33 +0400, Dmitry Stogov wrote: http://www.christian-seiler.de/temp/php/2008-07-24-reflection/reflection-closure-fixes-5.3.patch http://www.christian-seiler.de/temp/php/2008-07-24-reflection/reflection-closure-fixes-6.patch without applying and

Re: [PHP-DEV] [PATCH] Alias stream_context_get_default() as stream_context_set_default()

2008-08-04 Thread Johannes Schlüter
On Mon, 2008-08-04 at 09:49 +0200, Hannes Magnusson wrote: On Mon, Aug 4, 2008 at 01:29, Davey Shafik [EMAIL PROTECTED] wrote: Hey, it has come to my attention that stream_context_get_default() is /grossly/ misnamed, considering [...] That doesn't really solve anything as the argument

Re: [PHP-DEV] enabling everything by default

2008-08-04 Thread Johannes Schlüter
On Fri, 2008-08-01 at 14:11 +0400, Antony Dovgal wrote: I mean completely no offense to the developers of these extensions, but I would like them (extensions) to be thoroughly tested and mature first, after that we can discuss the question of adding them to the core. I think alpha stage is a

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src /ext/date config.w32 /ext/date/lib parse_iso_intervals.re

2008-08-05 Thread Johannes Schlüter
Hi, (should have gone out yesterday, but was hanging in my outbox...) On Mon, 2008-08-04 at 15:11 +0200, Pierre Joye wrote: Correct PHP is supposed to work on all platforms therefore the code has to work on Windows, too. And now it does. Which is a good thing. Now there are two

Re: [PHP-DEV] How does error_log open the file?

2008-08-05 Thread Johannes Schlüter
On Mon, 2008-08-04 at 00:52 -0700, mike wrote: I'm curious as to how error_log is opened... Is it opened when an error occurs, as in open/append to, or is the file handle kept open when the PHP fastcgi process is spawned? Depends on configuration in php.ini and some special extensions

Re: [PHP-DEV] clearstatcache change

2008-08-06 Thread Johannes Schlüter
On Wed, 2008-08-06 at 21:00 +0200, Arnaud Le Blanc wrote: btw. I just noticed chroot() calls this realpath_cache_clean()..intentional? I'd assume that, as /foo inside a chroot is different from /foo outside... Also some streams stuff uses the php_clear_stat_cache() func but those

[PHP-DEV] Re: cvs: php-src /ext/pcntl EXPERIMENTAL

2008-08-07 Thread Johannes Schlüter
Hi, On Thu, 2008-08-07 at 13:07 +, Antony Dovgal wrote: tony2001 Thu Aug 7 13:07:07 2008 UTC Removed files: /php-src/ext/pcntlEXPERIMENTAL Log: remove EXPERIMENTAL flag The EXTENSIONS file says EXTENSION: pcntl MAINTENANCE:

[PHP-DEV] cleaning php-src root dir

2008-08-07 Thread Johannes Schlüter
Hi, the php-src/ dir is quite filled with outdated READMEs and TODOs, any objection to remove these files: README.PHP4-TO-PHP5-THIN-CHANGES README.QNX README.UPDATE_5_2 README.Zeus TODO TODO-5.1 TODO-PHP5 UPGRADING The TODOs seem to be quite outdated, the Upgrading guides for 5.0, 5.1 and 5.2

Re: [PHP-DEV] [PATCH] Apache 1.x sapi timeout name fix

2008-08-20 Thread Johannes Schlüter
Hi, is anybody with deeper Apache knowledge around who can review that? Thnaks, johannes On Fri, 2008-08-15 at 19:36 -0700, Lucas Nealan wrote: Hello, Apache 1.x SAPI will occasionally timeout with a Read POST information timeout error instead of a send timeout error as it should. This

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

2008-08-20 Thread Johannes Schlüter
On Thu, 2008-08-21 at 01:11 +0200, Lars Strojny wrote: Am Montag, den 11.08.2008, 12:18 -0700 schrieb Christian Seiler: Maintaining closures, see http://news.php.net/php.internals/39835 What's with that? should be activated and has usual karma. johannes -- PHP Internals - PHP Runtime

Re: [PHP-DEV] run-tests gsoc status?

2008-08-27 Thread Johannes Schlüter
On Wed, 2008-08-27 at 10:46 +0200, Derick Rethans wrote: There was a run-tests.php rewrite application accepted for gsoc this summer.. I however haven't heard a word about it since then.. Does anyone know the status of that project? Still no reply to this? I suppose the project is then

Re: [PHP-DEV] Unable to find bug in these few lines of code. Please help.

2008-08-28 Thread Johannes Schlüter
On Thu, 2008-08-28 at 16:09 +0530, KishoreKumar Bairi wrote: PHP_FUNCTION(test_func) *{* These additional asterisks (*) make the code hard to read. but when I hit http://localhost/test.php Instead of showing the string, my browser is offering *test.php* for download. If I click save, its

Re: [PHP-DEV] fileinfo portability fixes, stream usages and cleanup, #1

2008-09-01 Thread Johannes Schlüter
On Mon, 2008-09-01 at 16:40 +0200, Pierre Joye wrote: hi all, Please find the patch here: http://pierre.libgd.org/patches/fileinfo_stream_cleanup.txt From scrolling over it and applying it on my Solaris box it looks fine. johannes -- PHP Internals - PHP Runtime Development Mailing

Re: [PHP-DEV] Re: [PHP] PHP 5.3.0alpha2

2008-09-04 Thread Johannes Schlüter
On Wed, 2008-09-03 at 23:36 -0700, steve wrote: It is pretty much include() and its relatives. Autoloading with a lot of possible include paths. I'm sure if you had a Zend Framework App and put it on Windows, and took out all the require_onces with paths in them Try 5.3 please, our

[PHP-DEV] ini-parsing, double quotes, windows in 5.3

2008-09-04 Thread Johannes Schlüter
Hi, now that we have a publicly available alpha on Windows we get the first feedback from Windows users. Within quite short time we got two bug reports (#45992 #45994) about a change in the ini-parsing: With =5.2 we allow include_path = c:\foo\bar\ and treat the backslash as regular

Re: [PHP-DEV] [PATCH] allow T_INLINE_HTML before T_NAMESPACE

2008-09-12 Thread Johannes Schlüter
Hi, On Fri, 2008-09-12 at 14:11 -0500, Greg Beaver wrote: This is a simple patch that allows files like this: main.php: html [...] ?php namespace my::template; // stuff ? I'd prefer: main.php: ?php namespace foo; ? html !-- ... -- ?php //stuff ? /html looks cleaner imo. johannes

Re: [PHP-DEV] PHP Suspendable requests for Apache

2008-09-14 Thread Johannes Schlüter
On Sun, 2008-09-14 at 23:21 +0200, Rustam Abdullaev wrote: Second and most important though, Apache isn't architected to handle long running processes inside a request, as it typically uses a limited pool of Not true.. Tomcat supports comet, and it runs on APR. Yes, the thread pool is

Re: [PHP-DEV] namespace issues

2008-09-26 Thread Johannes Schlüter
Hi, On Mon, 2008-09-22 at 12:45 -0700, Stanislav Malyshev wrote: 1. Allow braces for namespaces. So, the syntax for namespaces will be: a) namespace foo; should be first (non-comment) statement in the file, namespace extends to the end of the file or next namespace declaration. b) namespace

Re: [PHP-DEV] Disable PHAR by default

2008-09-29 Thread Johannes Schlüter
On Mon, 2008-09-29 at 14:32 +0200, David Zülke wrote: Totally hating to bring this up again (and hijacking this thread), but can we please enable ext/xsl by default in 5.3? : Only possible when bundling libxslt - no way. johannes -- PHP Internals - PHP Runtime Development Mailing List To

  1   2   3   4   5   6   7   8   9   10   >