[PHP-DEV] Re: Character lost while convert from cp936 to utf-8 using mb_convert_encoding

2011-11-17 Thread Laruence
Hi: at least , this is a really big problem for chinese phpers :) thanks On Fri, Nov 18, 2011 at 1:09 PM, Laruence wrote: > Hi: > >   I have filed a bug about this issue: https://bugs.php.net/bug.php?id=60306 > >   following script: > > $s = "洪仁"; > var_dump(mb_convert_encoding($s, "utf8", "gb

Re: [PHP-DEV] Changes to constructor signature checks

2011-11-17 Thread Ralph Schindler
One point that was missed, that I'd like to reiterate is that: Again, CTOR is not "special" b/c it's a PHP "magic method" its "special" because it is shares qualities of being a static method as well as an instance method. That said, the constructor is not just another instance metho

[PHP-DEV] Character lost while convert from cp936 to utf-8 using mb_convert_encoding

2011-11-17 Thread Laruence
Hi: I have filed a bug about this issue: https://bugs.php.net/bug.php?id=60306 following script: save the script in fenc=cp936 then, run the script in php5.4 , output is : string(3) "洪" string(6) "洪仁" characters lost while converting from cp936 to utf8. this is really a big problem...

Re: [PHP-DEV] Results of testing ZF against PHP 5.4.0RC1

2011-11-17 Thread Stas Malyshev
Hi! First of all, ob_clean() and ob_end_clean() will raise the same notice even in PHP 5.3. It seems inconsistent to me to treat these three differently, so in that regard, PHP 5.4 is actually fixing behavior (although arguably the other way to approach the problem is to remove the notice from a

Re: [PHP-DEV] Changes to constructor signature checks

2011-11-17 Thread Anthony Ferrara
Some responses inline... > So, since PHP lets you do bad things in the first place (like have > constructors and static methods in interfaces, and abstract ctors in > abstract classes), we follow that up with another "bad" of breaking general > LSP expectations of how things work? > > Isn't this t

Re: [PHP-DEV] Results of testing ZF against PHP 5.4.0RC1

2011-11-17 Thread David Zülke
On 17.11.2011, at 21:46, Matthew Weier O'Phinney wrote: > * ob_get_clean() now raises a notice if no buffer to delete > Prior to 5.4.0RC1, if there were no buffers left to delete, > ob_get_clean() was silent. It now raises a notice -- which, when > using PHPUnit, means an error is now raised

Re: [PHP-DEV] Changes to constructor signature checks

2011-11-17 Thread Ralph Schindler
Inline... Honestly, I think __construct should behave like any other method when specified abstract or via an interface. Which is not fair to say because constructors are not like instance methods, they are in fact "special", and not just inside PHP (more on that below). I know you're thi

Re: [PHP-DEV] Results of testing ZF against PHP 5.4.0RC1

2011-11-17 Thread Patrick ALLAERT
2011/11/17 Rasmus Lerdorf : > On 11/17/2011 03:10 PM, Stas Malyshev wrote: >> Hi! >> >>>     I recall from earlier discussions that Stas was in favor of reverting >>>     this change -- what's the status at this time? This single change >> >> I was not and still am not - I think if something warran

Re: [PHP-DEV] Changes to constructor signature checks

2011-11-17 Thread Anthony Ferrara
Honestly, I think __construct should behave like any other method when specified abstract or via an interface. I know you're thinking "But it's not an LSP violation in the constructor". But my assertion to that is that it's a violation of the contract that the abstract method / interface defined.

Re: [PHP-DEV] Results of testing ZF against PHP 5.4.0RC1

2011-11-17 Thread Rasmus Lerdorf
On 11/17/2011 03:10 PM, Stas Malyshev wrote: > Hi! > >> I recall from earlier discussions that Stas was in favor of reverting >> this change -- what's the status at this time? This single change > > I was not and still am not - I think if something warrants notice this > is exactly the ca

Re: [PHP-DEV] Results of testing ZF against PHP 5.4.0RC1

2011-11-17 Thread Matthew Weier O'Phinney
On 2011-11-17, Stas Malyshev wrote: > > I recall from earlier discussions that Stas was in favor of > > reverting this change -- what's the status at this time? This > > single change > > I was not and still am not - I think if something warrants notice this > is exactly the case. Con

[PHP-DEV] Changes to constructor signature checks

2011-11-17 Thread Ralph Schindler
Hey All, Concerning RC1, __construct() and https://wiki.php.net/rfc/prototype_checks I think we need to round out this discussion on the __construct() signature checking in 5.4. The current behavior (RC1) feels very wrong with respect to PHP's class based, single inheritance, multiple interf

Re: [PHP-DEV] Results of testing ZF against PHP 5.4.0RC1

2011-11-17 Thread Ferenc Kovacs
Hi Matthew, my replies are inline On Thu, Nov 17, 2011 at 9:46 PM, Matthew Weier O'Phinney < weierophin...@php.net> wrote: > Greetings! > > My team and I (which means Ralph Schindler and Enrico Zimuel) took some > time this week to: > > * Build PHP 5.4.0RC1 and run make tests (and send feedback)

Re: [PHP-DEV] Results of testing ZF against PHP 5.4.0RC1

2011-11-17 Thread Stas Malyshev
Hi! I recall from earlier discussions that Stas was in favor of reverting this change -- what's the status at this time? This single change I was not and still am not - I think if something warrants notice this is exactly the case. Conversion of array to string "Array" IMHO makes no

Re: [PHP-DEV] pecl sqlite

2011-11-17 Thread Johannes Schlüter
Just to make one thing clear: To the best of my knowledge the module works with 5.4 and trunk (it's three months since I tested, but I'm not aware of a recent big API break) only defect is that the PDO sqlite2 driver won't be there and can't be enabled in an easy way. The patch I sent yesterday fix

[PHP-DEV] Results of testing ZF against PHP 5.4.0RC1

2011-11-17 Thread Matthew Weier O'Phinney
Greetings! My team and I (which means Ralph Schindler and Enrico Zimuel) took some time this week to: * Build PHP 5.4.0RC1 and run make tests (and send feedback) * Run Zend Framework 1.11 unit tests against PHP 5.4.0RC1 * Run Zend Framework 2.0 (dev) unit tests against PHP 5.4.0RC1 We found t

Re: [PHP-DEV] SVN Account Request: deepakb

2011-11-17 Thread Florian Anderiasch
On 11/17/2011 03:28 PM, Deepak Balani wrote: > * Working in the internals of PHP. Hi, this document describes how to start contributing to PHP: http://svn.php.net/viewvc/php/php-src/trunk/README.SUBMITTING_PATCH?view=markup Greetings, Florian -- PHP Internals - PHP Runtime Development Mailing

[PHP-DEV] SVN Account Request: deepakb

2011-11-17 Thread Deepak Balani
* Working in the internals of PHP. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] pecl sqlite

2011-11-17 Thread Ferenc Kovacs
On Thu, Nov 17, 2011 at 2:08 PM, Pierre Joye wrote: > hi, > > 2011/11/16 Philip Olson : > > > We need to make pecl/sqlite work with 5.4, as currently it does not. > > Why? We moved it out because it is not maintained anymore. As I agree > that the concept of "move to pecl" for dead extensions is

Re: [PHP-DEV] pecl sqlite

2011-11-17 Thread Pierre Joye
hi, 2011/11/16 Philip Olson : > We need to make pecl/sqlite work with 5.4, as currently it does not. Why? We moved it out because it is not maintained anymore. As I agree that the concept of "move to pecl" for dead extensions is a bad idea, inciting users to continue to use with 5.4 instead of m

Re: [PHP-DEV] sapi/cli/php, compiling error

2011-11-17 Thread Ivan Enderlin @ Hoa
Hi Hannes, On 17/11/11 10:41, Hannes Magnusson wrote: On Thu, Nov 17, 2011 at 10:38, Ivan Enderlin @ Hoa wrote: Hi all, I was trying to compile PHP trunk on my machine and here is the error I got: Undefined symbols for architecture x86_64: "_zim_SessionHandler_open", referenced fro

Re: [PHP-DEV] sapi/cli/php, compiling error

2011-11-17 Thread Hannes Magnusson
On Thu, Nov 17, 2011 at 10:38, Ivan Enderlin @ Hoa wrote: > Hi all, > > I was trying to compile PHP trunk on my machine and here is the error I got: > >   Undefined symbols for architecture x86_64: >      "_zim_SessionHandler_open", referenced from: >          _php_session_class_functions in sessi

[PHP-DEV] sapi/cli/php, compiling error

2011-11-17 Thread Ivan Enderlin @ Hoa
Hi all, I was trying to compile PHP trunk on my machine and here is the error I got: Undefined symbols for architecture x86_64: "_zim_SessionHandler_open", referenced from: _php_session_class_functions in session.o "_zim_SessionHandler_close", referenced from: