Re: [PHP-DEV] PHP 5.4.0alpha2 released

2011-07-20 Thread Jingcheng Zhang
already a bug report about it and is now > closed. > > On Wed, Jul 20, 2011 at 5:12 AM, Jingcheng Zhang wrote: > > Hello, > > > > I'm using Windows XP Apache 2.2 build with VC9 x86 from Apache Lounge. > > 5.4.0alpha1 works, but 5.4.0alpha2 is broken with "

Re: [PHP-DEV] PHP 5.4.0alpha2 released

2011-07-19 Thread Jingcheng Zhang
; announcement so we can adjust it if feel to. > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Best regards, Jingcheng Zhang Beijing, P.R.China

Re: [PHP-DEV] Is this behavior expected?

2010-10-02 Thread Jingcheng Zhang
definition. > Since early binding is quite complex, it is best to assume classes always > are defined at run-time and define them before use. > -- > Stanislav Malyshev, Software Architect > SugarCRM: http://www.sugarcrm.com/ > (408)454-6900 ext. 227 > -- Best regards, Jingcheng Zhang Beijing, P.R.China

[PHP-DEV] Is this behavior expected?

2010-10-02 Thread Jingcheng Zhang
Hello internals, I've occurred an inconsistent problem: This works and print "foo". The result is "Fatal error: Class 'C' not found". Is this result expected? Why? -- Best regards, Jingcheng Zhang Beijing, P.R.China

[PHP-DEV] Static initialization block support in Class?

2010-08-17 Thread Jingcheng Zhang
, "dynamic" initialization of static variable is expected and meaningful. Thanks in advance! -- Best regards, Jingcheng Zhang P.R.China

Re: [PHP-DEV] Inspecting opcode

2009-12-03 Thread Jingcheng Zhang
t; > Bye, > Stefan > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Best regards, Jingcheng Zhang P.R.China

Re: [PHP-DEV] The inconsistencies/flaws of PHP5's object model

2009-11-18 Thread Jingcheng Zhang
and doesn't? > > For example: This result is more or less expected since type hinting only works on variable types, and the argument 'c' is a string, but as a type, the interface i cannot hint the fact that class c "is a type of i". Thanks for your patient reply! > > -- > Stanislav Malyshev, Zend Software Architect > s...@zend.com http://www.zend.com/ > (408)253-8829 MSN: s...@zend.com > -- Best regards, Jingcheng Zhang P.R.China

[PHP-DEV] The inconsistencies/flaws of PHP5's object model

2009-11-18 Thread Jingcheng Zhang
ass which implements it. Sorry to raise so many complaint, but these inconsistencies bring me a big headache when developing. I would like to hear the design rules of PHP5's object model, at least, the explanations of the above inconsistencies. Thanks very much! -- Best regards, Jingcheng Zhang P.R.China

Re: [PHP-DEV] Suggestion on static field inheritance

2009-05-18 Thread Jingcheng Zhang
is allowed in interfaces, why?), which means this programming diagram is not officially supported. Since PHP 5.3 introduces late static binding, so is there any chance that "static::" under static context behaves like $this under dynamic context? Then the codes will be a little shorter a

[PHP-DEV] Re: Suggestion on static field inheritance

2009-05-17 Thread Jingcheng Zhang
Nobody is interested in this topic? Another confusing feature is "static function", which is allowed in interface, but not allowed in abstract class, any explanation or reason for this? Thanks :-) 2009/5/16 Jingcheng Zhang > Hello all, > > Maybe I have not found its deta

[PHP-DEV] Suggestion on static field inheritance

2009-05-15 Thread Jingcheng Zhang
follow the dynamic inheritance rule ( $this on dynamic, or prototype delegation on JavaScript) ? Thanks :-) -- Best regards, Jingcheng Zhang P.R.China

Re: [PHP-DEV] Problems with LSB

2008-02-17 Thread Jingcheng Zhang
;> > > > > > > > > > -- > > PHP Internals - PHP Runtime Development Mailing List > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > -- > Etienne Kneuss > http://www.colder.ch > > Men never do evil so completely and cheerfully as > when they do it from a religious conviction. > -- Pascal > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Best regards, Jingcheng Zhang Room 304, Dormitory 26 of Yuquan Campus, Zhejiang University P.R.China

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

2008-02-10 Thread Jingcheng Zhang
Cheers, > -- > Pierre > http://blog.thepimp.net | http://www.libgd.org > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Best regards, Jingcheng Zhang Room 304, Dormitory 26 of Yuquan Campus, Zhejiang University P.R.China

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

2007-11-30 Thread Jingcheng Zhang
;; // Correct, "foo" is $this->bar = 'BAR'; // Should be OK, as "bar" is private property of *class c* here } } ?> Thanks. On Dec 1, 2007 12:57 AM, Johannes Schlüter <[EMAIL PROTECTED]> wrote: > Hi, > > On Sat, 2007-12-01 at 00:24 +08

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

2007-11-30 Thread Jingcheng Zhang
> -- > > PHP Internals - PHP Runtime Development Mailing List > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > -- > Etienne Kneuss > http://www.colder.ch > > Men never do evil so completely and cheerfully as > when they do it from a religious conviction. > -- Pascal > -- Best regards, Jingcheng Zhang Room 304, Dormitory 26 of Yuquan Campus, Zhejiang University P.R.China

Re: [PHP-DEV] [patch] Late static bindings (LSB)

2007-09-26 Thread Jingcheng Zhang
ments. > -- > Stanislav Malyshev, Zend Software Architect > [EMAIL PROTECTED] http://www.zend.com/ > (408)253-8829 MSN: [EMAIL PROTECTED] > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Best regards, Jingcheng Zhang Room 304, Dormitory 26 of Yuquan Campus, Zhejiang University P.R.China

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

2007-08-17 Thread Jingcheng Zhang
nformation, because the extension > > applies to the whole file at once. Simply defining the contents of a > > file does not imply any organization whatsoever. > > > > What the original proposal *does* do is provide a namespace prefix - it > > defines a scope within

Re: [PHP-DEV] [patch] Dynamic access of static members/methods, and constants

2007-05-03 Thread Jingcheng Zhang
43.phpt diff -N tests/lang/043.phpt --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ tests/lang/043.phpt 6 Mar 2007 14:43:49 - @@ -0,0 +1,14 @@ +--TEST-- +Dynamic call for static methods +--FILE-- + +===DONE=== +--EXPECT-- +bar +===DONE=== -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php -- Best regards, Jingcheng Zhang Room 304, Dormitory 26 of Yuquan Campus, Zhejiang University P.R.China

[PHP-DEV] Re: abstract static function

2007-04-04 Thread Jingcheng Zhang
Sorry, I've forgotten the "extends" keywords in the example codes: 2007/4/5, Jingcheng Zhang <[EMAIL PROTECTED]>: Hi internals, I used to use abstract static function prior to php 5.2, because when I consider static class as a singleton, I can use abstract static

[PHP-DEV] abstract static function

2007-04-04 Thread Jingcheng Zhang
. Thanks :) -- Best regards, Jingcheng Zhang Room 304, Dormitory 26 of Yuquan Campus, Zhejiang University P.R.China

[PHP-DEV] Problems on PHP5 object instantiation

2007-01-18 Thread Jingcheng Zhang
ature, or, is it just not the natural way? Thanks :) -- Best regards, Jingcheng Zhang Room 304, Dormitory 26 of Yuquan Campus, Zhejiang University P.R.China