Re: [PHP-DEV] Accessors v2.2 Patch

2011-12-12 Thread Will Fitch
Clint, How about final public $Hours {} That would allow for the read only and limit the inheritance. Sent from my iPhone On Dec 11, 2011, at 11:02 PM, Clint M Priest cpri...@zerocue.com wrote: https://bugs.php.net/patch-display.php?bug=49526patch=v2.2revision=1323662103 This one

Re: [PHP-DEV] Local time zone

2011-12-12 Thread Derick Rethans
On Sun, 11 Dec 2011, Oleg Oshmyan wrote: * The tzname C variable can be used to get two abbreviations for the current zone (typically the standard one and the DST one for zones where DST is used), which allows to improve the guess compared to using just one abbreviation; for example,

Re: [PHP-DEV] Local time zone

2011-12-12 Thread Evert Pot
On Dec 11, 2011, at 1:07 PM, Pierre Joye wrote: hi, On Sun, Dec 11, 2011 at 1:59 AM, Oleg Oshmyan chor...@inbox.lv wrote: I am willing to work on patches but I suppose some consensus should be reached first. The consensus was that you have to set a valid default timezone in php.ini I

[PHP-DEV] Unexpected behavior for ::

2011-12-12 Thread Bogdan Bezuz
Hello, I'm not sure if this is the desired behavior and i don't want to submit a bogus bug report. class A { public function f1() { var_dump($this-_b); } } class B { public $_b = 'stuff'; public function f2() { A::f1(); } } $b = new B(); $b-f2();

Re: [PHP-DEV] Local time zone

2011-12-12 Thread Pierre Joye
hi, On Mon, Dec 12, 2011 at 2:30 PM, Evert Pot evert@filemobile.com wrote: The 'guess' in the function-name should be enough of a warning. People who opt-in to this behaviour explicitly comply to the possible inaccuracy of the result. I would be one of those people, and as much as it

Re: [PHP-DEV] Unexpected behavior for ::

2011-12-12 Thread Sean Coates
I'm not sure if this is the desired behavior and i don't want to submit a bogus bug report. … At first i would expect an error since A was not instantiated, at most i would expect to return NULL but not 'stuff'. Is this a bug ? This is explained here:

Re: [PHP-DEV] Unexpected behavior for ::

2011-12-12 Thread Etienne Kneuss
Hi, On Mon, Dec 12, 2011 at 14:35, Bogdan Bezuz bogdan.be...@emag.ro wrote: Hello, I'm not sure if this is the desired behavior and i don't want to submit a bogus bug report. class A {    public function f1()    {        var_dump($this-_b);    } } class B {    public $_b = 'stuff';

Re: [PHP-DEV] Local time zone

2011-12-12 Thread Derick Rethans
On Mon, 12 Dec 2011, Evert Pot wrote: On Dec 11, 2011, at 1:07 PM, Pierre Joye wrote: On Sun, Dec 11, 2011 at 1:59 AM, Oleg Oshmyan chor...@inbox.lv wrote: I am willing to work on patches but I suppose some consensus should be reached first. The consensus was that you have to set

Re: [PHP-DEV] Unexpected behavior for ::

2011-12-12 Thread Bogdan Bezuz
Hello, Thanks for the info, as pointed out by Sean Coates this is sort of documented, I've submited a documentation (problem/)bug report. https://bugs.php.net/bug.php?id=60499 E_STRICT was disabled since a large part of the application was moved to php 5 only

Re: [PHP-DEV] Local time zone

2011-12-12 Thread Oleg Oshmyan
I do not think it is too much asking to an admin to setup the correct default timezone in php.ini on install, or to allow users to set it for their virtual hosts via the usual interface. We are not talking only about servers here. We are mainly talking about personal machines, including

Re: [PHP-DEV] Local time zone

2011-12-12 Thread Oleg Oshmyan
This might work on some distrbutions, but not nearly on all. And definitely not on Windows. On Debian it's not a symlink for example. It is still usable as one of the possibilities for the guessing algorithm to examine. Initially I also wanted to say that /usr/share/zoneinfo can be searched

[PHP-DEV] APC caching identical files multiple times

2011-12-12 Thread Rasmus Schultz
Hello Folks, We're hosting an increasing number of Drupal (ick) sites on our servers, and while going over the diagnostic screen for APC, we noticed that identical files are being cached multiple times. For example, user.module is cached 3 times for 3 sites. I've seen other people asking this

[PHP-DEV] Facebook releases a PHP just-in-time compiler

2011-12-12 Thread marius adrian popa
Announcement is here http://www.facebook.com/note.php?note_id=10150415177928920 I saw via reddit http://www.reddit.com/r/programming/comments/n8xq7/facebook_releases_a_php_justintime_compiler/c3770qq -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit:

[PHP-DEV] Only 4 days remain! Contact us today at CelebrityAccess!

2011-12-12 Thread CelebrityAccess
CelebrityAccess Whether you are purchasing a new subscription, renewing an old one, or advertising with us – all purchases allow you to choose one of many wonderful holiday gifts. It's our way of thanking you for your business. Visit our Holiday Special Page and look around. There are some great

RE: [PHP-DEV] Accessors v2.2 Patch

2011-12-12 Thread Clint M Priest
This wouldn't quite address the concern. This already works and prevents any modification/override to the accessor. The spec talks about being able to allow an over-ride of the get and non-override of the setter (or in the readonly case, no setter defined). -Original Message- From:

RE: [PHP-DEV] Accessors v2 Patch

2011-12-12 Thread Clint M Priest
There is currently no parent::get(), parent::set() capability. The RFC has no mention of being able to call the parent accessor and so I have not explored that possibility. It would be a nice feature for just such a purpose. -Original Message- From: guilhermebla...@gmail.com

RE: [PHP-DEV] Accessors v2 Patch

2011-12-12 Thread Johannes Schlüter
On Mon, 2011-12-12 at 01:01 +, Clint M Priest wrote: To be complete I should probably add something to the reflection system as well. At present the getters/setters would show up as functions. What would be preferable? 1) Show up as regular functions and let users fend for themselves?

Re: [PHP-DEV] Accessors v2 Patch

2011-12-12 Thread guilhermebla...@gmail.com
Hi, I don't see how we could possibly do as option 1. The structure would be weird, because considering I'm looking for an specific ReflectionMethod that matches a property name, I'd also be able to call it through invoke, but also regularly through $obj-Setter($value); Since I don't see in the

RE: [PHP-DEV] Accessors v2 Patch

2011-12-12 Thread Clint M Priest
Why perpetuate the problem though? I'd tend to think 3 would be the best solution. -Original Message- From: Johannes Schlüter [mailto:johan...@schlueters.de] Sent: Monday, December 12, 2011 6:52 PM To: Clint M Priest Cc: Pierre Joye; internals@lists.php.net Subject: RE: [PHP-DEV]

[PHP-DEV] [RFC]Call for voting about const array/string dereference

2011-12-12 Thread Laruence
Hi: Call for voting about the const array/string derefernce RFC now. you can find more info here: https://wiki.php.net/rfc/constdereference#vote thanks -- Laruence  Xinchen Hui http://www.laruence.com/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit:

Re: [PHP-DEV] [RFC]Call for voting about const array/string dereference

2011-12-12 Thread Nikita Popov
This can't go into PHP 5.4.0 in any case, because it is a feature addition and the release is already in RC. Nikita On Tue, Dec 13, 2011 at 7:16 AM, Laruence larue...@php.net wrote: Hi:    Call for voting about the const array/string derefernce RFC now.    you can find more info here: