;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)
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
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
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
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
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
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
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
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...
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
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
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
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)
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
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
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
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
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
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:
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
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
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
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
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
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
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
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
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
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
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
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
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
32 matches
Mail list logo