Re: [PHP-DEV] post 5.3.0 development

2009-06-27 Thread Johannes Schlüter
On Fri, 2009-06-26 at 20:40 -0400, Ilia Alshanetsky wrote: After some conversations with Rasmus on IRC i've come up with the following patch: http://ilia.ws/patch/curl.txt I this the latest patch and all agree t it? Or were there further improvements? Could somebody of you please commit it

Re: [PHP-DEV] UPGRADING + php.ini additions

2009-06-27 Thread Johannes Schlüter
On Sat, 2009-06-27 at 01:37 +0200, Hannes Magnusson wrote: I haven't wasted time on finding out wtf these ini entries actually do, or even asked philip or gwynne to fix the inglés.. but if there is even a remote chance it'll make it into 5.3.0 I'll do whatever it takes to make it

[PHP-DEV] Re-Tagging 5.3

2009-06-27 Thread Johannes Schlüter
Alright, I mentioned it in the last mails a bit in different ways so to make it clear: I'm aiming at re-tagging and packaging 5.3.0 to get these things in: - Andrei's calloc fix - Rasmus's/Ilia's curl fix - Improvements to the UPGRADING file (everybody) If possible (and I think it is)

Re: [PHP-DEV] Type hinting/casting request for vote

2009-07-07 Thread Johannes Schlüter
On Mon, 2009-07-06 at 20:52 -0400, Ilia Alshanetsky wrote: Last week or so there was a fairly detailed discussion on the internals list regarding type hinting based on my original patch. Since then the patch has been revised to address the major concerns that were identified (breakage of

Re: [PHP-DEV] Multithreaded C Gearman worker to run PHP scripts

2009-07-14 Thread Johannes Schlüter
Hi, On Tue, 2009-07-14 at 19:28 +0200, Thomas Koch wrote: So I'm happy for anybody interested to look over my work and help me to become better: http://github.com/thkoch2001/gearman-php-worker/tree/master You are wrapping every call inside PHP_EMBED_START_BLOCK/_END_BLOCK calls. By this

Re: [PHP-DEV] better management of php-src/pear and PEAR's future in php

2009-07-16 Thread Johannes Schlüter
On Thu, 2009-07-16 at 18:20 -0500, Greg Beaver wrote: I'd like to consider instead using svn:externals to pull in PEAR stuff directly from a STABLE branch from somewhere in the pear/ hierarchy. This would allow us over at PEAR to push the installation phars into that branch at the same time a

Re: [PHP-DEV] Re: [PEAR-DEV] Tagging releases

2009-07-24 Thread Johannes Schlüter
On Fri, 2009-07-24 at 15:00 -0400, Gwynne Raskind wrote: And I'm happy to announce that this is now fixed; creation of tags is now allowed. This comes alongside a bit of an overhaul of the entire set of hook scripts. See http://news.php.net/php.cvs/59765 if you're desperately curious :).

Re: [PHP-DEV] Re: [PEAR-DEV] Tagging releases

2009-07-24 Thread Johannes Schlüter
Hi, On Fri, 2009-07-24 at 16:14 -0500, Greg Beaver wrote: I think it would be better to make the release process like this, with 5.3.1RC1 as an example: (1) svn copy http://svn.php.net/repository/php/php-src/branches/PHP_5_3 http://svn.php.net/repository/php/php-src/branches/php_5_3_1RC1

Re: [PHP-DEV] Supporting ArrayObject in array_* functions

2009-07-30 Thread Johannes Schlüter
On Thu, 2009-07-30 at 00:08 -0300, Guilherme Blanco wrote: What do you think about the possibility to support ArrayObject instances in array_* functions? If you all agreed on this, I can definately help to complete the patch, but I need some initial guidance to finish at least the first

Re: [PHP-DEV] Supporting ArrayObject in array_* functions

2009-07-30 Thread Johannes Schlüter
On Thu, 2009-07-30 at 11:42 -0300, Guilherme Blanco wrote: I'm trying to avoid a globally solution on first instance to avoid a great impact on language. If you wanna ask me what's the global solution, I'll suggest a Collection like implementation for all array functions. Define all array

Re: [PHP-DEV] mod_files.sh patch

2009-08-05 Thread Johannes Schlüter
Hi, On Mon, 2009-08-03 at 01:20 -0400, Eddie Drapkin wrote: There's a script, mod_files.sh, in ext/session for creating directory tree with depth X for sessions. As it stands, it's pretty poorly documented and very basic. I got exceptionally bored and rewrote most of it, the patch is

Re: [PHP-DEV] RFC: __invokeStatic() method

2009-08-06 Thread Johannes Schlüter
Hi, On Thu, 2009-08-06 at 23:18 +0300, Vesselin Kenashkov wrote: Hello everyone, I tried to create a page in the wiki but I dont see the create button. I have an account but I guess I still lack permissions. Anyway here is my proposal: You should be able to edit the RC list, add a new link

[PHP-DEV] PHP 5.3.1 RC 1

2009-08-06 Thread Johannes Schlüter
Hi, following Ilia's notice I want to give a heads-up for 5.3.1 RC1, too. We have quite many fixes in SVN and the packaging script was successful in my test. I want to try to keep it along the same schedule as Ilia with 5.2 so we can keep commit limitations - in case we need them - as limited

Re: [PHP-DEV] Re: SOAP_MARSHAL_DATETIME (or: bug #44383)

2009-08-17 Thread Johannes Schlüter
On Tue, 2009-08-11 at 14:05 +0400, Dmitry Stogov wrote: We can also just export them... Which symbols are they? Probably it make sense for the future release. php6? I think it's quite useful to export timelib as time manipulation is quite often needed. In the past we sometimes added new

Re: [PHP-DEV] Re: SOAP_MARSHAL_DATETIME (or: bug #44383)

2009-08-18 Thread Johannes Schlüter
Hi, 1) please don't abuse another thread for something completely unrelated, that makes tracking things really hard. 2) Most of you want should be doable with 5.3's anonymous functions/closures. 3) More than that isn't really planned at the moment. johannes On Tue, 2009-08-18 at 12:46 +0300,

Re: [PHP-DEV] mysqlnd as a shared extension ?

2009-08-18 Thread Johannes Schlüter
Hi, On Mon, 2009-08-17 at 19:12 +0200, Remi Collet wrote: My goal will be to provides both solutions (libmysql and mysqlnd) to be able to quickly switch from one to the other (for tests / benchmark) Like others said I'd go with different static builds - it's not like PHP would take ages to

Re: [PHP-DEV] Dead code

2009-08-25 Thread Johannes Schlüter
Hi, even if no known extension uses it I won't remove it in 5.3 as it is a break of ABI compatibility. For 6 I assume one might remove it, especially as it doesn't know about IS_UNICODE. johannes On Mon, 2009-08-24 at 08:24 +0200, Patrick ALLAERT wrote: Hi list, Apparently, function

Re: [PHP-DEV] Distribution for mobile

2009-08-26 Thread Johannes Schlüter
On Tue, 2009-08-25 at 20:06 -0300, Themis Vassiliadis wrote: I'am making some experiments on Symbian for Nokia mobile and I'am looking for some basically PHP distribution that can be compiled in. Nokia has a site about that: http://wiki.opensource.nokia.com/projects/PAMP Other than that i

[PHP-DEV] Really going to 5.3.1RC1

2009-08-29 Thread Johannes Schlüter
Hi, I thought I sent the warning out on thursday but can't find it in my internals folder therefore the notice: We certainly should get 5.3.1 rolling and therefore I'm planning RC1 on Tuesday evening European time I'm not t used to subversion therefore I'd like some comments about this

Re: [PHP-DEV] Really going to 5.3.1RC1

2009-08-31 Thread Johannes Schlüter
Hi, On Mon, 2009-08-31 at 11:23 +0300, Jani Taskinen wrote: I don't understand why you are merging things back and forth like that. Just keep it simple: PHP_5_3 is open for any commits, php_5_3_1 is only for commits you pick into it. And only do manual merge. Otherwise you won't be merging

Re: [PHP-DEV] Really going to 5.3.1RC1

2009-08-31 Thread Johannes Schlüter
Hi, thanks for your suggestions, some comments below: On Mon, 2009-08-31 at 14:09 +0200, Patrick ALLAERT wrote: 2) Tuesday: Change the version $ vi branches/php_5_3_1/main/php_version.h etc. 3) making the branch a tag $ svn mv branches/php_5_3_1 tags/php_5_3_1 I would suggest a

Re: [PHP-DEV] Replace a builtin function

2009-09-03 Thread Johannes Schlüter
Hi, On Thu, 2009-09-03 at 11:12 +0200, Aron Szabo wrote: Hello! Is it possible to replace an existing PHP function ( like mail() ) in an extension. Look for the implementation of disable_functions. (zend_disable_function() in zend_API.c) johannes -- PHP Internals - PHP Runtime

[PHP-DEV] 5.3.1 process

2009-09-03 Thread Johannes Schlüter
Hi, a new tool provides new opportunities and challenges, with the move to svn I took some of the new possibilities and after many discussions created a new release process which I'll try for 5.3.1 for which RC1 is about to be packed. (having trouble accessing the snaps box to build it...) The

[PHP-DEV] PHP 5.3.1RC1 Testing

2009-09-04 Thread Johannes Schlüter
, please test this RC against your code base and report any problems that you encounter. Johannes Schlüter PHP 5.3 Release Master -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Configuration in the php.ini file

2009-10-12 Thread Johannes Schlüter
Hi, On Fri, 2009-10-09 at 15:21 +0200, Samuel ROZE wrote: I wanted to change a parameter in my PDO class, with the fourth PDO::_construct arg. But, I've many projects, which uses PDO, with one new PDO per project. The problem is that I have to change the source of every projects... Why

Re: [PHP-DEV] PDO PgSQL: _pdo_pgsql_notice

2009-10-12 Thread Johannes Schlüter
Hi, On Wed, 2009-10-07 at 15:55 +0200, Lukas Kahwe Smith wrote: yeah .. its certainly a valid question. we have stuff like lastInsertId(), which depending on the driver either gets the current value of a sequence or the last id generated for the connection. so going by that example

Re: [PHP-DEV] Patch: Use notices in PDO

2009-10-12 Thread Johannes Schlüter
Hi, On Thu, 2009-10-08 at 23:51 +0200, Samuel ROZE wrote: There is a patch to implements this function into PDO: http://www.d-sites.com/wp-content/uploads/2009/10/php-5_3-pdo-notices-managment.patch Just a quick note: This changes the ABI so it can't be done in 5.3. johannes -- PHP

[PHP-DEV] PHP 5.3.1RC2 Testing

2009-10-20 Thread Johannes Schlüter
. two weeks from now. To make this possible, please test this RC against your code base and report any problems that you encounter. Johannes Schlüter PHP 5.3 Release Master -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] PHP 5.3.1RC2 Testing

2009-11-03 Thread Johannes Schlüter
Hi, sorry the subject should have been PHP 5.3.1RC3 Testing, it's RC3 not 2. Sorry. The rest of the mail is correct though: johannes On Tue, 2009-11-03 at 20:15 +0100, Johannes Schlüter wrote: The third release candidate of 5.3.1 was just released for testing and can be downloaded here

[PHP-DEV] PHP 5.3.1RC2 Testing

2009-11-03 Thread Johannes Schlüter
to roll the final using the same code base either Thursday next week or the week after. To make this possible, please test this RC against your code base and report any problems that you encounter. Johannes Schlüter PHP 5.3 Release Master -- PHP Internals - PHP Runtime Development Mailing List

Re: [PHP-DEV] PHP Stream wrappers seek with whence SEEK_CUR doesn't work

2009-11-04 Thread Johannes Schlüter
Hi, On Wed, 2009-11-04 at 10:18 +0100, Davide Romanini wrote: My php version: PHP 5.2.8 (cli) (built: Dec 17 2008 00:54:27) Please use a recent version of PHP. Copyright (c) 1997-2008 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies with Zend Extension

[PHP-DEV] PHP 5.3.1RC4 Testing

2009-11-12 Thread Johannes Schlüter
other bugs have been fixed so this additional RC is needed. Depending on feedback I hope to be able to roll the final using the same code base Thursday next week. To make this possible, please test this RC against your code base and report any problems that you encounter. Johannes Schlüter PHP 5.3

[PHP-DEV] Proposed 5.3.1 Release announcement

2009-11-19 Thread Johannes Schlüter
at http://www.php.net/ChangeLog-5.php#5.3.1. Johannes Schlüter PHP 5.3 Release Manager -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] 5.3.1 Release announcement

2009-11-19 Thread Johannes Schlüter
at http://www.php.net/ChangeLog-5.php#5.3.1. Johannes Schlüter PHP 5.3 Release Manager -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [PATCH] - Improving multi-threaded performance by propagating TSRMLS_C

2009-12-01 Thread Johannes Schlüter
Hi, On Mon, 2009-11-30 at 19:02 +0530, Arvind Srinivasan wrote: (1) If the number of occurrences of the API to be modified are relatively small, then make the change directly. e.g. -int fcgi_accept_request(fcgi_request *req); -int fcgi_finish_request(fcgi_request *req, int force_close);

Re: [PHP-DEV] Using a stream function into another module

2009-12-01 Thread Johannes Schlüter
On Fri, 2009-11-27 at 18:53 +0100, Samuel ROZE wrote: Hello, I want to use two stream functions (stream_array_to_fd_set and stream_array_from_fd_set) in a module (/etc/modulename/modulename.c). To use them, i included the streamsfuncs.h file, with: stream_array_from_fd_set is declared

Re: [PHP-DEV] FPM is available in a separate SVN branch

2009-12-04 Thread Johannes Schlüter
On Fri, 2009-12-04 at 15:53 +0300, Antony Dovgal wrote: Hello all. I'm glad to announce that we now have FPM SAPI available for testing in a separate SVN branch. You can check out its sources using the following command: svn co

[PHP-DEV] Towards 5.3.2

2009-12-07 Thread Johannes Schlüter
Hi, so, 5.3.1 out just a few weeks but due to the merge-based process and some delays in there the changelog for 5.3 is already quite long and so I'd like to restart the release process there soon. My current plan has one RC this week, one more before Christmas, maybe Tue 22nd, then a Christmas

Re: [PHP-DEV] Towards 5.3.2

2009-12-07 Thread Johannes Schlüter
On Mon, 2009-12-07 at 09:21 -0500, Ilia Alshanetsky wrote: It was not, and we did not forget it because of the automatic TODOs in the wiki (it shows all commits in a list with their states, http://wiki.php.net/todo/php531/log) :-). BS, I reminded Johannes about that patch right before the

Re: [PHP-DEV] [PHP-FPM] syntax of configuration file

2009-12-09 Thread Johannes Schlüter
Hi, I know little aobut FPM but: On Wed, 2009-12-09 at 15:55 +0100, Jérôme Loyet wrote: We already discussed pros/cons of the two solutions. But why don't we allow several syntaxes ? And let the end user to choose the better one for its need ? No. Several syntaxes makes testing harder, is

Re: [PHP-DEV] A patch for bug 44331

2009-12-09 Thread Johannes Schlüter
On Wed, 2009-12-09 at 22:54 +0100, Florian Anderiasch wrote: --- ext/json/json.c.orig2009-12-09 22:15:33.0 +0100 +++ ext/json/json.c 2009-12-09 22:48:04.0 +0100 @@ -42,6 +42,7 @@ #define PHP_JSON_HEX_APOS (12) #define PHP_JSON_HEX_QUOT (13) #define

Re: [PHP-DEV] Possible support to DirectoryIterator to be include_path aware via flag

2009-12-17 Thread Johannes Schlüter
On Thu, 2009-12-17 at 18:31 -0200, Guilherme Blanco wrote: Yes, but stream_resolve_include_path() works only for files and also it's PHP6 only. =( Should be quite simple to merge to other branches if anybody really cares. Doesn't look like anybody cared from the time 5.3 came up until at least

Re: [PHP-DEV] is_a() versus instanceof

2009-12-18 Thread Johannes Schlüter
On Sat, 2009-12-19 at 01:42 +0100, Johannes Mueller wrote: if($foo instanceof bar){ .. } // runs without any notification instanceof is a language construct expecting a class identifier. It doesn't complain about on-existing classes as it would need to trigger the __autoloader which might be

Re: [PHP-DEV] How does the interpreter work

2009-12-21 Thread Johannes Schlüter
Hi, On Mon, 2009-12-21 at 14:56 +0100, Christian Grobmeier wrote: I would like to learn more about how the interpreter works, but I was unable to find good documents on the web. Basically I am thinking on something about allocation of variables, how does object creation work and such stuff.

[PHP-DEV] PHP 5.3.2RC1 Testing

2009-12-22 Thread Johannes Schlüter
that you encounter. Johannes Schlüter PHP 5.3 Release Master -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Proposal: allow for includes in php.ini

2009-12-23 Thread Johannes Schlüter
On Wed, 2009-12-23 at 04:40 -0800, Michael Shadle wrote: NOTE: I just remembered there -is- a config-file-scan-dir option at compile time. However, what about doing away with this and making it inline in php.ini, the syntax can match mysql, as it uses ini files as well. I think the

[PHP-DEV] Re: [PHP-CVS] svn: /php/php-src/ branches/PHP_5_2/NEWS branches/PHP_5_2/Zend/zend_builtin_functions.c branches/PHP_5_3/NEWS branches/PHP_5_3/Zend/zend_builtin_functions.c trunk/Zend/zend_bui

2009-12-30 Thread Johannes Schlüter
Hi, On Wed, 2009-12-30 at 19:15 +, Ilia Alshanetsky wrote: iliaaWed, 30 Dec 2009 19:15:11 + Revision: http://svn.php.net/viewvc?view=revisionrevision=292823 Log: Fixed bug #44827 (define() allows :: in constant names). Bug:

Re: [PHP-DEV] invalid params return value

2009-12-31 Thread Johannes Schlüter
On Thu, 2009-12-31 at 12:20 +, Derick Rethans wrote: Hmm, I don't actually think many people test whether parsing parameters failed, but they do test the return value. AFAIK, our standard is to return NULL for parameter parsing failures (at least that's what all the examples in

[PHP-DEV] ext/intl/tests/rb_build.php and svnclean

2010-01-11 Thread Johannes Schlüter
Hi, the file ext/intl/tests/rb_build.php will be removed by svnclean as it matches the *.php pattern from ext/intl/tests/'s ignore. Is there a way to change the svn ignore pattern to work-around this or can the file be renamed/moved? johannes -- PHP Internals - PHP Runtime Development

Re: [PHP-DEV] 5.3 release schedule and other bits

2010-01-13 Thread Johannes Schlüter
Hi, On Tue, 2010-01-12 at 14:48 -0600, Raphael Geissert wrote: Hello, At Debian we are planning to include PHP 5.3 in Squeeze, the next stable release. As such, I would like to know for example when we could expect 5.3.2 and 5.3.3 to be released. I hope that the new release branch

[PHP-DEV] Debian PHP patches

2010-01-16 Thread Johannes Schlüter
Raphael, I went over your patches from http://patch-tracker.debian.org/package/php5/5.3.1-2 and did quick reviews (didn't apply / test them or anything ...) Here some comments: 004-ldap_fix.patch: Do you have a test for this? when does it happen that ldap_value is NULL happen? - If that's

Re: [PHP-DEV] Re: function call chaining

2010-01-19 Thread Johannes Schlüter
Hi, On Tue, 2010-01-19 at 12:31 +0100, Michael Wallner wrote: On 01/19/2010 01:27 AM, Stanislav Malyshev wrote: Hi! I wrote a small patch that enables this kind of syntax in PHP: foo()(); I think that becomes hard to read quite easily. I'd rather see two other things that are

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

2007-01-23 Thread Johannes Schlüter
On Tue, 2007-01-23 at 13:51 +, 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 several years), does the license still mean sh!t?

Re: [PHP-DEV] Syntactic improvement to array

2007-02-04 Thread Johannes Schlüter
Hi Andi, I'd like such a syntax enhancement. These should be the results from the last time the issue was discussed: http://devzone.zend.com/node/view/id/1474#Heading7 If I remember correct the main issues stated against it were - it's to perlish - Without keyword it's hard to find the

Re: [PHP-DEV] Reflection API Injection Mechanism

2007-02-09 Thread Johannes Schlüter
Hi Jim, you're searching for runkit ;-) http://de.php.net/manual/en/ref.runkit.php johannes On Fri, 2007-02-09 at 10:18 -0600, Jim Wilson wrote: Dear PHP Internals subscribers, I have two quick questions regarding PHP 5's Reflection API (I apologize if this isn't the right list to ask):

Re: [PHP-DEV] removed stuff fatals error in HEAD

2007-03-23 Thread Johannes Schlüter
Hi, I'd also like to completely remove get_magic_quotes_gpc() and similar functions instead of having them resulting in a fatal error. The effect would be the same - the script terminates - but function_exists() is much nicer as check than version_compare(). Any objections? johannes On Fri,

Re: [PHP-DEV] Build failed on Windows

2007-04-07 Thread Johannes Schlüter
Hi, On Sat, 2007-04-07 at 23:16 +0100, Richard Quadling wrote: Also a clear understanding of exactly what MS compiler must be used. Will the free MS VC++ 2005 Express Edition be suitable? Quoting the documentation: | Since PHP 5 the free Microsoft .NET toolchain is also supported (you | need

Re: [PHP-DEV] PHP6 todo list

2007-04-12 Thread Johannes Schlüter
Hi Lukas, On Thu, 2007-04-12 at 16:37 +0200, Lukas Kahwe Smith wrote: 4. safe_mode/open_basedir 1. remove safe mode and throw E_CORE_ERROR when set 2. unbundle safe_mode_exec_dir from safe_mode and keep it (rasmus) (take a look at this patch too) 3. new ini

Re: [PHP-DEV] PHP6 todo list

2007-04-12 Thread Johannes Schlüter
On Thu, 2007-04-12 at 17:52 +0200, Johannes Schlüter wrote: No. Dmitry removed it on 2006/03/16 10:33:23 but Zeev reverted that change on 2006/06/05 13:58:52. I didn't find the discussion but I remember there was some When did we decide on that? posting from Zeev. Ah I'm sorry, reading

Re: [PHP-DEV] Fatal error: Method XXX::__toString() must not throw an exception...

2007-04-13 Thread Johannes Schlüter
Hi, casts to string happen in quite different places in the engine. For different reasons we can't assure that an exception throw in these situations would be handled correctly by the engine. This won't change until great parts of the engine are rewritten. Please check the archives - there were

Re: [PHP-DEV] Trying to understand PHP6's unicode support

2007-05-03 Thread Johannes Schlüter
On Thu, 2007-05-03 at 14:29 +0300, Tomas Kuliavas wrote: I think you are confusing PHP features with MySQL features. By running 'SET NAMES' query you set client, connection and result character sets in MySQL (see http://dev.mysql.com/doc/refman/4.1/en/charset.html). It is not related to PHP.

Re: [PHP-DEV] Re: Bug? Raw POST data in PHP 5.2.2, take two

2007-05-06 Thread Johannes Schlüter
Hello Unknown, you are wrong, the name is right please learn your lessons before writing to internals. To the original problem: Ilia committed a fix a few hours ago which should fix the problem. Feel free to test a current snapshot. johannes On Sun, 2007-05-06 at 11:34 -0700, Unknown W.

Re: [PHP-DEV] PHP 6 Preview

2007-05-16 Thread Johannes Schlüter
Hi Marcus, for making HEAD the main development branch we should try to reduce the number of failing tests. Running run-tests.php -n currently still shows 42 tests failing on my current setup. As long as that many tests fail it's hard to see if a patch breaks anything in there. I recently spent

Re: [PHP-DEV] PHP Unicode extension in PHP6

2007-05-23 Thread Johannes Schlüter
Hi Rangel, for PHP 6 the basic string type ist unicode string and most functions will accept these as primary type. But there are a few exceptions where unicode, for different reason, makes no sense. There you have to pass a binary string - an example is the mentioned urlencode(): It has to work

Re: [PHP-DEV] fwrite( ) gives Notice with Unicode ON

2007-05-31 Thread Johannes Schlüter
Hi, yes, the notice is expected. You either have to cast to a binary string or by setting the stream's encoding using stream_encode() since we can't guess which encoding you're going to use for a stream. johannes On Thu, 2007-05-31 at 05:38 -0700, Nikhil Gupta wrote: Hi, I'm writing some PHPT

Re: [PHP-DEV] What is the use of unicode.semantics in PHP 6?

2007-06-14 Thread Johannes Schlüter
Hi Jani, On Thu, 2007-06-14 at 16:53 +0300, Jani Taskinen wrote: During Derick's talk about PHP 6 at PHP Vikinger, I started to wonder what exactly was the reasoning behind adding something like unicode.semantics option. Derick didn't remember, neither did I. The reason was to keep BC

Re: [PHP-DEV] What is the use of unicode.semantics in PHP 6?

2007-06-17 Thread Johannes Schlüter
Hi Jani, On Thu, 2007-06-14 at 16:53 +0300, Jani Taskinen wrote: During Derick's talk about PHP 6 at PHP Vikinger, I started to wonder what exactly was the reasoning behind adding something like unicode.semantics option. Derick didn't remember, neither did I. The reason was to keep BC

Re: [PHP-DEV] PHP 5.2.3 and libxml compile failure on Win32

2007-06-17 Thread Johannes Schlüter
Hi, I don't really know that windows stuff but did you try building PHP using Edins zip.zip file or your own libxml2? Maybe the libs have some compatibility issues. And about the other question: All XML extensions in PHP 5 are based on libxml2. If you disable building libxml2 support you can't

Re: [PHP-DEV] documentation of php5ts.dll and .NET wrapper

2007-06-17 Thread Johannes Schlüter
Hi muquaddim, before calling these API functions you have to initialise some data structures. The usual way to embed PHP into another environment is to provide an SAPI module which wraps PHP's APIs to something you can use from another system in a nice way. See php-src/sapi/embed/ for a quite

Re: [PHP-DEV] Re: documentation of php5ts.dll and .NET wrapper

2007-06-19 Thread Johannes Schlüter
Hi again, On Mon, 2007-06-18 at 18:12 -0400, muquaddim wrote: I think the configure option --disable-zts will work on the following lines. #ifdef ZTS #define TSRMLS_D void ***tsrm_ls #define TSRMLS_DC , TSRMLS_D #define TSRMLS_C tsrm_ls #define TSRMLS_CC , TSRMLS_C #else #define

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

2007-06-19 Thread Johannes Schlüter
Hi Jordan, next to the book, which is a good reading there are some lsides from Marcus at talks.somabo.de (look for Code Camp or something like that) which give an introduction, but well, slides are always made for being explained during a talk :-) johannes On Tue, 2007-06-19 at 13:53 -0400,

Re: [PHP-DEV] What is the use of unicode.semantics in PHP 6?

2007-07-05 Thread Johannes Schlüter
On Thu, 2007-07-05 at 22:47 -0500, Richard Lynch wrote: On Fri, June 29, 2007 3:25 am, Alexey Zakhlestin wrote: The thing which I don't understand is: why do people want backward compatibility that much? Because if you run a webhost with a zillion users, half of whom are screaming for PHP

Re: [PHP-DEV] What is the use of unicode.semantics in PHP 6?

2007-07-06 Thread Johannes Schlüter
On Fri, 2007-07-06 at 16:28 +0200, Stefan Priebsch wrote: Pierre schrieb: Namespace is one _very_ important reason. If we need a marketing I agree. But AFAIK namespaces were not supposed to be in PHP6, at least not in PHP 6.0. Is there an official position on wether namespaces will be in

Re: [PHP-DEV] RIP PHP 4?

2007-07-06 Thread Johannes Schlüter
+1 On Fri, 2007-07-06 at 16:32 +0200, Derick Rethans wrote: Ladies, Gentlemen, Kings and Princesses, With the nice PHP 5 / PHP 6 unicode semantics thread under way I am trying to gauge what people feel about dropping support for PHP 4 at the end of this year. That does not mean that we

Re: [PHP-DEV] RIP PHP 4?

2007-07-07 Thread Johannes Schlüter
Hi, On Sat, 2007-07-07 at 11:00 +0300, Vesselin Kenashkov wrote: I can not find the specific message... But googling I found this: http://www.nexen.net/chiffres_cles/phpversion/php_stats_evolution_for_november_2006.php So as of november 2006 the php5 adoption was slightly above 12%. Having

Re: [PHP-DEV] What is the use of unicode.semantics in PHP 6?

2007-07-09 Thread Johannes Schlüter
Hi, On Mon, 2007-07-09 at 15:33 -0700, Stanislav Malyshev wrote: Fixing unicode=on does not remove the IS_STRING/IS_UNICODE duality. We still have two kinds of data - unstructured bit stream and structured text. But we still have the mess that most internal structures (function tables,

RE: [PHP-DEV] What is the use of unicode.semantics in PHP 6?

2007-07-10 Thread Johannes Schlüter
On Mon, 2007-07-09 at 19:38 -0700, Andi Gutmans wrote: Btw, I don't know how many of you have actually tried to port PHP 5 apps to PHP 6 but it's quite a disaster. We made some fixes in the past 2-3 weeks and its getting better but it still requires a lot of work. If we don't make this easy

Re: [PHP-DEV] Creating an object-oriented PHP extension

2007-07-10 Thread Johannes Schlüter
Hi Boris, On Tue, 2007-07-10 at 15:38 +0200, Boris wrote: Hi there, I'm trying to create an object-oriented PHP 5 extension. As I don't know any step-by-step tutorial which would explain everything in detail I'm trying to understand various sources and documents I happen to run into.

[PHP-DEV] Always enable mail() function

2007-07-10 Thread Johannes Schlüter
Hi, recently I had the problem that we disable the mail() function if configure can't find the sendmail binary. Is there any real reason for this? I can image a few situations where the binary is in a non-standard location or PHP is compiled on a different host than used. I'd like to commit the

Re: [PHP-DEV] Always enable mail() function

2007-07-10 Thread Johannes Schlüter
On Wed, 2007-07-11 at 00:49 +0300, Jani Taskinen wrote: So what happens when sendmail really does not exist? The same as if you configure sendmail_oath wrong or move you binary to a host where it is missing: mail() returns false. johannes -- PHP Internals - PHP Runtime Development Mailing

Re: [PHP-DEV] Apache handler with Multiple PHP versions

2007-07-11 Thread Johannes Schlüter
Hi On Thu, 2007-07-12 at 01:13 +0200, Tijnema wrote: I know this is possible, and I believe it is possible in Apache too with some kind of hack? But this still doesn't solve a lot of problems, but will generate a lot more with portable code. Take a bulletin board for example, there are a

Re: [PHP-DEV] Re: [PEAR-DEV] can i rely on ctype?

2007-07-16 Thread Johannes Schlüter
Hi Lukas, On Mon, 2007-07-16 at 08:48 +0200, Lukas Kahwe Smith wrote: can you gives us a clarification on the question on if ctype will infact be deprecated in PHP6? ctype is not UTF-16 aware and therefore won't work with PHP 6 unicode strings. Instead of ctype there are functions offered by

Re: [PHP-DEV] POSIX regex

2007-07-18 Thread Johannes Schlüter
Hi Zeev, On Wed, 2007-07-18 at 01:58 -0700, Zeev Suraski wrote: Regarding the unicode on/off modes, I don't think you put yourself in the developer's view at all. Users are not going to be better of having to deal with both modes. Well, I tend to agree with you that they shouldn't have to

Re: [PHP-DEV] Re: Type-hinted return values in PHP5?

2007-07-18 Thread Johannes Schlüter
On Wed, 2007-07-18 at 21:55 +0200, troels knak-nielsen wrote: On 7/18/07, David Duong [EMAIL PROTECTED] wrote: Since there isn't any comments on this, should I have posted this elsewhere? or is it just that no one is interested? It could be interesting to know, if the reason why this

Re: [PHP-DEV] libc and random functions

2007-07-19 Thread Johannes Schlüter
Hi David, On Thu, 2007-07-19 at 13:09 -0400, David Coallier wrote: After a bit of discussion with Jani, I came to realize that keeping the wrapper macro for php_rand, php_srand is plain useless. Yes some pecl extensions do rely on them (and for those who do, I also provided a patch [3]). We

Re: [PHP-DEV] POSIX regex

2007-07-20 Thread Johannes Schlüter
On Fri, 2007-07-20 at 15:46 -0500, Richard Lynch wrote: ustuff typed in unicode to allow creation of Unicode strings in PHP5 seems like a Good Idea to this naive reader, if it's easy enough to code that. No, we can't introduce a unicode string type in PHP 5. johannes -- PHP Internals - PHP

Re: [PHP-DEV] Log4P Project Class Names

2007-07-31 Thread Johannes Schlüter
Hi Will, On Mon, 2007-07-30 at 13:57 -0500, Will Fitch wrote: Thanks, Marcus. I finally found this documentation on PECL by using Google site:pecl.php.net. I appreciate the insight. it's also part of the PHP Source distribution and CVS:

Re: [PHP-DEV] Fix inconsistencies in OO calls

2007-07-31 Thread Johannes Schlüter
Hi Etienne, On Mon, 2007-07-30 at 22:27 +0200, Etienne Kneuss wrote: Hello, Currently, those are allowed: new $classname; classname::$methodname(); but those aren't: $classname::foo(); $classname::CONST; $classname::$member; Here is a patch for head that fixes those

Re: [PHP-DEV] [PATCH] Getopt with longopts and windows support - part 2

2007-08-07 Thread Johannes Schlüter
David, On Mon, 2007-08-06 at 09:57 -0400, David Soria Parra wrote: Hi internals, so based on a discussion of php.pecl we thought about using the php_getopt for the PHP_FUNCTION(getopt) instead of the system provided getopt. Here is the patch for that. Hopefully someone is reviewing and

Re: [PHP-DEV] [PATCH] Getopt with longopts and windows support - part 2

2007-08-07 Thread Johannes Schlüter
way we should do that - I've seen to many people doing too crazy stuff... Of course that's not high priority... johannes --Jani Johannes Schlüter kirjoitti: David, On Mon, 2007-08-06 at 09:57 -0400, David Soria Parra wrote: Hi internals, so based on a discussion of php.pecl we

Re: [PHP-DEV] [PATCH] Getopt with longopts and windows support - part 2

2007-08-07 Thread Johannes Schlüter
On Tue, 2007-08-07 at 13:02 -0700, Stanislav Malyshev wrote: David has a point here. So first of all we should move getopt implementation out of CLI/CGI and into main. Could you do that first Jani? Why one would need getopt outside of cgi/cli? I.e. where would these options come from?

[PHP-DEV] Renaming namespaces to packages

2007-08-10 Thread Johannes Schlüter
Hi, I think we reached the consensus to rename namespaces to packages as our implementation is more package-like. Therefore I wrote the corresponding patch which tries to get rid of all namespaces and ns (well, not all ns only the namespace-related ones of course) used in the code. Additionally I

RE: [PHP-DEV] Renaming namespaces to packages

2007-08-16 Thread Johannes Schlüter
Hi, On Thu, 2007-08-16 at 09:33 +0400, Dmitry Stogov wrote: At least, I have one additional namespace related patch, that is not accepted yet. Renaming may require a lot of additional work with it. Well, in my experience it's simpler to do such renaming inside an patch (then it's a simple

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

2007-08-16 Thread Johannes Schlüter
Hi Andi, On Tue, 2007-08-14 at 09:13 -0700, Andi Gutmans wrote: Yeah and we reviewed the patch and saw it was good. Thanks for the feedback, such information is always appreciated :-) I think what's missing here is that to the best of my knowledge Ilia reached out off list to revert the

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-16 Thread Johannes Schlüter
Hi Tijnema, On Thu, 2007-08-16 at 20:27 +0200, Tijnema wrote: On 8/10/07, Johannes Schlüter [EMAIL PROTECTED] wrote: Hi, I think we reached the consensus to rename namespaces to packages as our implementation is more package-like. Therefore I wrote the corresponding patch which tries

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-16 Thread Johannes Schlüter
Hi again, On Thu, 2007-08-16 at 20:50 +0200, Tijnema wrote: Well, why does PHP compiles fine without the patch?, and why is this file in the snapshot package when it is generated from flex? Since snaps are for users, CVS versions (and patches) are for developers and we expect developers to

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-16 Thread Johannes Schlüter
On Thu, 2007-08-16 at 21:27 +0200, Johannes Schlüter wrote: I have flex 2.5.33 installed btw, that's fine right? Yes, check the output of configure for details why it wasn't found. Bah, I hate numbers. We need flex 2.5.4, not 2.5.33. 2.5.33 won't work with the engine's skeleton file

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-17 Thread Johannes Schlüter
Hi, I've updated the patch to be compatible with Dmitry's latest changes: http://schlueters.de/~johannes/php/zend_namespace_to_package_20070817.diff johannes On Fri, 2007-08-10 at 11:26 +0200, Johannes Schlüter wrote: Hi, I think we reached the consensus to rename namespaces to packages

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-20 Thread Johannes Schlüter
On Mon, 2007-08-20 at 10:43 -0700, Tony Bibbs wrote: Having watched this thread intently for the past few weeks, we seem to be simply tripping over the semantics of it all, right? Thinking a bit outside the box, how hard would it be to simply use both names, one as an alias of the other? In

Re: [PHP-DEV] What is the use of unicode.semantics in PHP 6?

2007-08-21 Thread Johannes Schlüter
On Tue, 2007-08-21 at 08:31 +0100, Lester Caine wrote: How much work do people think *IS* involved in porting a large application over to PHP6? Reading between the lines it looks like we are talking file conversion to UTF-16 + what? What is currently a show stopper to simply running a PHP5

<    1   2   3   4   5   6   7   8   9   10   >