[PHP-DEV] ob_start callback not fired with ob_get_clean()

2012-04-25 Thread Dmitri Snytkine
;s my callback being executed during this call? It's actually in the documentation and ob_get_clean is not listed among the functions that trigger the callback. Is there a good reason why callback not fired for these functions? Dmitri Snytkine Web Developer Ultra Logistics, Inc. Phone: (888)

RE: [PHP-DEV] Ability to assign new object to a class property.

2012-04-16 Thread Dmitri Snytkine
is available to constructor. Dmitri Snytkine Web Developer Ultra Logistics, Inc. Phone: (888) 220-4640 x 2097 Fax: (888) 795-6642 E-Mail: dsnytk...@ultralogistics.com Web: www.ultralogistics.com "A Top 100 Logistics I.T. Provider in 2011" -Original Message- From: Si

RE: [PHP-DEV] Ability to assign new object to a class property.

2012-04-14 Thread Dmitri Snytkine
Why not? It's convenient to assign an empty array to a property in this manner. private $storage = array(); So why not private $storage = new ArrayObject(); Doing stuff like this in class definition vs in constructor just makes code look cleaner. Dmitri Snytkine Web Developer Ultra Logi

RE: [PHP-DEV] Ability to assign new object to a class property.

2012-04-13 Thread Dmitri Snytkine
But why is it possible to assing a new array to a property like that but not a new instance of some class? Isn't a new array also requires some type of initialization? Dmitri Snytkine Web Developer Ultra Logistics, Inc. Phone: (888) 220-4640 x 2097 Fax: (888) 795-6642 E-Mail: d

[PHP-DEV] Ability to assign new object to a class property.

2012-04-13 Thread Dmitri Snytkine
MyClass is created the $storage variable is automatically assigned a new ArrayObject. Somethink like this is valid, possible and commonly used in Java, why not in php? Has anyone already asked for this to be valid syntax in php? Dmitri Snytkine Web Developer Ultra Logistics, Inc. Phone: (888) 220-4

RE: [PHP-DEV] [RFC] Allow "use( $longname as $alias)" syntax for closures declaration

2012-04-12 Thread Dmitri Snytkine
I'm curious to know the benefits of this. Care to explain why or when this would be useful? Dmitri Snytkine Web Developer Ultra Logistics, Inc. Phone: (888) 220-4640 x 2097 Fax: (888) 795-6642 E-Mail: dsnytk...@ultralogistics.com Web: www.ultralogistics.com "A Top 100 Logistics I.T. P

RE: [PHP-DEV] Override keyword

2012-03-22 Thread Dmitri Snytkine
This can be useful but I think it belongs in annotations, same as it is done in Java. Java has @override annotation which does exactly this thing and is undestood natively by Java. First the annotations should be implementend natively in php. Dmitri Snytkine Web Developer Ultra Logistics, Inc

[PHP-DEV] Possibility to add finally to try/catch?

2012-02-28 Thread Dmitri Snytkine
x27;return' inside try or catch blocks in which case the value to be returned is remembered tempraraly, the code inside finally block executes and then remembered value is returned. Dmitri Snytkine Web Developer Ultra Logistics, Inc. Phone: (888) 220-4640 x 2097 Fax: (888) 795-6642 E-Mail: ds

RE: [PHP-DEV] Is this correct behaviour with SplMinHeap?

2012-02-25 Thread Dmitri Snytkine
This makes sense. Thank you. Dmitri Snytkine Web Developer Ultra Logistics, Inc. Phone: (888) 220-4640 x 2097 Fax: (888) 795-6642 E-Mail: dsnytk...@ultralogistics.com Web: www.ultralogistics.com "A Top 100 Logistics I.T. Provider in 2011" -Original Message- From: ekne...

[PHP-DEV] Is this correct behaviour with SplMinHeap?

2012-02-25 Thread Dmitri Snytkine
eap run it again (now I expet to get lowest value first) and get exact same results back. Is this a bug? Dmitri Snytkine Web Developer Ultra Logistics, Inc. Phone: (888) 220-4640 x 2097 Fax: (888) 795-6642 E-Mail: dsnytk...@ultralogistics.com Web: www.ultralogistics.com "A Top 100 Logi

RE: [PHP-DEV] Re: internals Digest 22 Feb 2012 22:13:24 -0000 Issue 2561

2012-02-24 Thread Dmitri Snytkine
could potentially cause problems if a script uses the word enum for existing variable name or a function or a class name? Dmitri Snytkine Web Developer Ultra Logistics, Inc. Phone: (888) 220-4640 x 2097 Fax: (888) 795-6642 E-Mail: dsnytk...@ultralogistics.com Web: www.ultralogisti

RE: [PHP-DEV] [RFC] Enum proposal (yet another)

2012-02-23 Thread Dmitri Snytkine
True but it will have with type hinting, making code more 'bullet proof' Dmitri Snytkine Web Developer Ultra Logistics, Inc. Phone: (888) 220-4640 x 2097 Fax: (888) 795-6642 E-Mail: dsnytk...@ultralogistics.com Web: www.ultralogistics.com "A Top 100 Logistics I.T. P

RE: [PHP-DEV] [RFC] Enum proposal (yet another)

2012-02-22 Thread Dmitri Snytkine
ums. http://javarevisited.blogspot.com/2011/08/enum-in-java-example-tutorial.html I think enums will be beneficial to php, but will add one more features that people not familiar with it will have to learn about. Dmitri Snytkine Web Developer Ultra Logistics, Inc. Phone: (888) 220-4640 x 2097 Fax: (888)

RE: [PHP-DEV] [RFC] Enum proposal (yet another)

2012-02-22 Thread Dmitri Snytkine
This is just one of the many features that available in Java and "would be nice to have" in php. Maybe we should put togher a list of features that exist in Java and people want to see in php (obviousle exclude all concurrency related topics) Dmitri Snytkine Web Developer Ultra Logi

RE: [PHP-DEV] Feature Request

2012-01-04 Thread Dmitri Snytkine
pretty sure it's a bad idea because this function expected to return true/false Not to mention it is completely unnecessary since you can assign path to a var $file = '/path/file.txt'; if(!file_exists($file)){ // you already have access to $file } Dmitri Snytkine Web Developer

RE: [PHP-DEV] Return Type Hinting for Methods RFC

2011-12-27 Thread Dmitri Snytkine
can be combined. Dmitri Snytkine Web Developer Ultra Logistics, Inc. Phone: (888) 220-4640 x 2097 Fax: (888) 795-6642 E-Mail: dsnytk...@ultralogistics.com Web: www.ultralogistics.com "A Top 100 Logistics I.T. Provider in 2011" -Original Message- From: Jonathan G

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

2011-12-27 Thread Dmitri Snytkine
Odd how substring can be used as index of string. Dmitri Snytkine Web Developer Ultra Logistics, Inc. Phone: (888) 220-4640 x 2097 Fax: (888) 795-6642 E-Mail: dsnytk...@ultralogistics.com Web: www.ultralogistics.com "A Top 100 Logistics I.T. Provider in 2011" -Original Message

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

2011-12-27 Thread Dmitri Snytkine
lse? I mean, this sort of thing can be added but it just looks like a separate feature alltogether. Dmitri Snytkine Web Developer Ultra Logistics, Inc. Phone: (888) 220-4640 x 2097 Fax: (888) 795-6642 E-Mail: dsnytk...@ultralogistics.com Web: www.ultralogistics.com "A Top 100 Logistics I.T. Pro

RE: [PHP-DEV] Return Type Hinting for Methods RFC

2011-12-23 Thread Dmitri Snytkine
Is this how it's done in Scala? Dmitri Snytkine Web Developer Ultra Logistics, Inc. Phone: (888) 220-4640 x 2097 Fax: (888) 795-6642 E-Mail: dsnytk...@ultralogistics.com Web: www.ultralogistics.com "A Top 100 Logistics I.T. Provider in 2011" -Original Message- From:

RE: [PHP-DEV] Scalar Type Hint

2011-12-22 Thread Dmitri Snytkine
ep the language as is, but adding these new 'scalar' or 'numeric' is just a horrible idea. Dmitri Snytkine Web Developer Ultra Logistics, Inc. Phone: (888) 220-4640 x 2097 Fax: (888) 795-6642 E-Mail: dsnytk...@ultralogistics.com Web: www.ultralogistics.com "A

RE: [PHP-DEV] Return Type Hinting for Methods RFC

2011-12-22 Thread Dmitri Snytkine
do when you hint class name for your input parameter - it will generate catchable fatal error if object is not an instance of expected class. Dmitri Snytkine Web Developer Ultra Logistics, Inc. Phone: (888) 220-4640 x 2097 Fax: (888) 795-6642 E-Mail: dsnytk...@ultralogistics.com Web

RE: [PHP-DEV] Return Type Hinting for Methods RFC

2011-12-22 Thread Dmitri Snytkine
Not sure what you mean by json wrapped. In mongo you do $coll->find(array('age' => $age); if $age is a string '21' your will not get any erros but neither will you get any results. Dmitri Snytkine Web Developer Ultra Logistics, Inc. Phone: (888) 220-4640 x 2097

RE: [PHP-DEV] Return Type Hinting for Methods RFC

2011-12-22 Thread Dmitri Snytkine
recoverable fatal error that you can catch. the well designed IDE can also catch error in your code if your parameters and all returnes are typed, so that will also save you a lot of time. Dmitri Snytkine Web Developer Ultra Logistics, Inc. Phone: (888) 220-4640 x 2097 Fax: (888) 795-6642 E

RE: [PHP-DEV] Return Type Hinting for Methods RFC

2011-12-22 Thread Dmitri Snytkine
ds sanity to your program. The fact that it can be made optional and not required is a great benefit also. Dmitri Snytkine Web Developer Ultra Logistics, Inc. Phone: (888) 220-4640 x 2097 Fax: (888) 795-6642 E-Mail: dsnytk...@ultralogistics.com Web: www.ultralogistics.com "A Top 100 L

RE: [PHP-DEV] Return Type Hinting for Methods RFC

2011-12-22 Thread Dmitri Snytkine
s to the discussion of this topic. I think this is a very important topic by the way. Dmitri Snytkine Web Developer Ultra Logistics, Inc. Phone: (888) 220-4640 x 2097 Fax: (888) 795-6642 E-Mail: dsnytk...@ultralogistics.com Web: www.ultralogistics.com "A Top 100 Logistics I.T. Provider in 2011&quo

RE: [PHP-DEV] Return Type Hinting for Methods RFC

2011-12-22 Thread Dmitri Snytkine
clarify I am asking to make type hinting for variable declaration an available option. Dmitri Snytkine Web Developer Ultra Logistics, Inc. Phone: (888) 220-4640 x 2097 Fax: (888) 795-6642 E-Mail: dsnytk...@ultralogistics.com Web: www.ultralogistics.com "A Top 100 Logistics I.T. Provider in

RE: [PHP-DEV] Return Type Hinting for Methods RFC

2011-12-22 Thread Dmitri Snytkine
that declaring types of variables will be added too because without it, this feature is not all that useful. Dmitri Snytkine Web Developer Ultra Logistics, Inc. Phone: (888) 220-4640 x 2097 Fax: (888) 795-6642 E-Mail: dsnytk...@ultralogistics.com Web: www.ultralogistics.com "A Top 100 Logist

RE: [PHP-DEV] Will apc.optimization ever be put back to APC?

2011-12-03 Thread Dmitri Snytkine
APC is great, APC definetely speeds up the php a lot but I just remember that there used to be also optimization options. I remember the days where eAccelerator and php accelerator and mmcache were popular. They all had code optimization option to speed up compiled scripts. Dmitri Snytkine

[PHP-DEV] Will apc.optimization ever be put back to APC?

2011-12-03 Thread Dmitri Snytkine
The option apc.optimization has been removed in apc 3.0.13 I wonder if there are any plans to put the code optimization option back into APC, so the APC will be not only the cache of php files but also act as an accelerator? Dmitri Snytkine Web Developer Ultra Logistics, Inc. Phone: (888) 220

RE: [PHP-DEV] 5.4's New De-referencing plus assignment

2011-12-02 Thread Dmitri Snytkine
IT would probably be even more convenient to just say if( (new Validator())->isValid($value) ){ } No reason to just temporaraly assign $validator. Dmitri Snytkine Web Developer Ultra Logistics, Inc. Phone: (888) 220-4640 x 2097 Fax: (888) 795-6642 E-Mail: dsnytk...@ultralogistics.com

RE: [PHP-DEV] 5.4's New De-referencing plus assignment

2011-11-30 Thread Dmitri Snytkine
of directly calling new() Dmitri Snytkine Web Developer Ultra Logistics, Inc. Phone: (888) 220-4640 x 2097 Fax: (888) 795-6642 E-Mail: dsnytk...@ultralogistics.com Web: www.ultralogistics.com "A Top 100 Logistics I.T. Provider in 2011" -Original Message- From: Ralph Schindl

[PHP-DEV] Any chance of having __invokeStatic()

2011-11-28 Thread Dmitri Snytkine
basically be the same as doing MyClass::doSomething($params); only without the extra typing of ::doSomething Dmitri Snytkine Web Developer Ultra Logistics, Inc. Phone: (888) 220-4640 x 2097 Fax: (888) 795-6642 E-Mail: dsnytk...@ultralogistics.com Web: www.ultralogistics.com "A Top 100 Logi