On 21/Oct/10 1:17 PM, Richard Quadling wrote:
On 21 October 2010 08:52, Ionut G. Stan wrote:
Option 5: Implement named parameters?
Come on, play fair. I know all about the named parameters and I didn't
mention them.
Where's the unfairness? I proposed them because the issue you
On 20/Oct/10 2:58 PM, Richard Quadling wrote:
Hello.
Take the following simple code.
According to the manual
A variable is considered to be null if it has not been set to any value yet [1].
By default, function arguments are passed by value [2].
When using default arguments, any defaults sho
On 07/Oct/10 8:56 AM, Nathan Nobbe wrote:
Hi,
Probly rehashing an old conversation here, but I'm wondering why the
following isn't supported
Here's the problem:
class ConcreteServer2 extends AbstractServer
{}
Now, ConcreteClient can't receive an instance of ConcreteServer2 as an
a
On 16/Sep/10 8:49 PM, Stas Malyshev wrote:
No, we can't have python decorators because unlike Python PHP functions
and classes aren't first-class objects. In Python, this:
@dec2
@dec1
def func(arg1, arg2, ...):
pass
means this:
def func(arg1, arg2, ...):
pass
func = dec2(dec1(func))
However,
On 19/Aug/10 4:16 PM, Ryan Panning wrote:
Nathan Rixham wrote:
what if Bar implements Foo, or Bar extends Foo - surely that should be
compatible given the inheritance chain.
I ran into this exact issue and thought it was strange. Is there a
reason this shouldn't be allowed?
It still breaks t
On 06/Aug/10 6:20 PM, Hannes Magnusson wrote:
On Fri, Aug 6, 2010 at 16:33, mathieu.suen wrote:
Hi,
For now you can only index an array using a scalar type or a string.
Is there some rfc or work going on to enlarge the possibility so that it is
possible to have some other object like:
I don
On 23/Jul/10 1:54 AM, Karoly Negyesi wrote:
Hi,
Given that call_user_func exists I would recommend to remove $foo()
from PHP Next.
Observe the "logic" in the following examples:
$foo();
new $foo();
classname::$foo;
classname::$foo();
How about:
$lambda = function () {};
$lambda();
What sh
The double pound (##) means that it's not official.
--
Ionut G. Stan
I'm under construction | http://blog.igstan.ro/
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
ody can
be happy. I think.
It's not "the way around this inconsistency" - it's how it is supposed
to work.
So, what's the reasoning behind this design decision? Why is it supposed
to work like this and not the other way around?
--
Ionut G. Stan
I'm under construc
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
--
Ionut G. Stan
I'm under construction | http://blog.igstan.ro/
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
ic of the above statements?
Thanks
-- Mathieu Suen
--
Ionut G. Stan
I'm under construction | http://blog.igstan.ro/
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
foreach($adders as $addIt)
{
echo $addIt(5);
}
Thanks for your attention
-- Mathieu Suen
--
Ionut G. Stan
I'm under construction | http://blog.igstan.ro/
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
namespaced function or class
are not namespaced.
namespace foo;
$this_is_a_global_var = 'foo';
function namespaced_function() {
global $this_is_a_globa_var;
}
--
Ionut G. Stan
I'm under construction | http://blog.igstan.ro/
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
for closing over variables (the lexical statement).
Thanks,
* I know it allows definition of function inside other functions, which
will ultimately end up in the global scope.
** namespaced functions don't make any difference, as variables aren't
namespaced.
--
Ionut G. Sta
me, I'd name the internal class used to
represent lambdas Lambda.
--
Ionut G. Stan
I'm under construction | http://blog.igstan.ro/
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
;int' == $type ? 15
: 0; } }
$r = new Int;
var_dump($r + 1); // 2
var_dump((int) $r + 1); // 16
var_dump((bool) $r + 1); // 1
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Internals - PHP Runtime Development Mailing L
se why I'm
wrong in this respect, I will refuse to implement (B).
--
Ionut G. Stan
I'm under construction | http://blog.igstan.ro/
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
gt;emailer;
$email = $emailer();
// ...
}
}
-- Mathieu Suen
--
Ionut G. Stan
I'm under construction | http://blog.igstan.ro/
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
It will work, just in a very complicated way. Emailer would need to have
access to some other global variables in order to resolve its dependencies.
My point is that they are globals.
On 11/19/2009 4:57 PM, Mathieu Suen wrote:
Ionut G. Stan a écrit :
This smells like metaclasses to me, just
l I can offer is
making suggestions and fine coffee.
Looking forward to hearing your comments!
Robert
--
Ionut G. Stan
I'm under construction | http://blog.igstan.ro/
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
already
have is_callable in the core.
--
Ionut G. Stan
I'm under construction | http://igstan.blogspot.com/
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
t
for now.
--
Ionut G. Stan
I'm under construction | http://igstan.blogspot.com/
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
ack in 2008 Felipe Pena wrote
a type hinting patch for PHP that is available on wiki.php.net.
--
Ionut G. Stan
I'm under construction | http://igstan.blogspot.com/
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
t;) || (isset($_GET["baz"])&&
$_GET["baz"] == "bat"))
to be able to do something like this
if(isset($_GET["foo"]) == "bar")
or
if(isset($_GET["foo"]) == "bar" || isset($_GET["baz"]) == "bat")
That isse
Thanks for the info Lukas
Cheers
On 3/31/2009 17:53, Lukas Kahwe Smith wrote:
On 28.03.2009, at 16:45, Ionut G. Stan wrote:
Hi,
I'm playing with 5.3.0 RC1 and wanted to install PEAR. In the
previous versions (for Windows at least)
there was a go-pear executable which is missing no
sword.
Cheers,
On Mon, Mar 30, 2009 at 10:04 AM, Ulf Wendel wrote:
Ionut G. Stan schrieb:
Warning: mysql_connect() [function.mysql-connect]: OK packet 6 bytes
shorter than expected in {filename} on line 18
Warning: mysql_connect() [function.mysql-connect]: mysqlnd cannot connect
to
Thanks Andrey, your explanations cleared all my uncertainties.
On 3/30/2009 13:34, Andrey Hristov wrote:
Hi,
Ionut G. Stan wrote:
Hi Ulf,
Thanks for the answer, but let me understand this better.
The old mysql API did not support the auth protocol of MySQL 4.1+,
but only lower,
while the
hp.ini
setting.
Cheers,
[1] http://dev.mysql.com/doc/refman/4.1/en/old-client.html
[2] http://php.net/mysqli.mysqlnd
On 3/30/2009 11:04, Ulf Wendel wrote:
Ionut G. Stan schrieb:
Warning: mysql_connect() [function.mysql-connect]: OK packet 6 bytes
shorter than expected in {filename} on
atabase* and it worked
- MySQL protocol_version is 10 on both Linux and Windows machines.
- Linux machine MySQL version is 5.0.48
- Windows machine MySQL version is 5.0.67-community-nt
Is there any other MySQL variable that I should look for?
Any feedback appreciated.
--
Ionut G. Stan
I'm under
Hi,
I'm playing with 5.3.0 RC1 and wanted to install PEAR. In the previous
versions (for Windows at least)
there was a go-pear executable which is missing now. So what are the
plans for supporting PEAR in
this new PHP version?
Thanks
--
Ionut G. Stan
I'm under constructio
On 3/26/2009 20:51, Daniel Convissor wrote:
That was fixed yesterday (per "php.ini-production& php.ini-development
last minute updates" thread).
Sorry, just saw it.
--
Ionut G. Stan
I'm under construction | http://igstan.blogspot.com/
--
PHP Internals - PHP Runtime
but there is no need
(causes confusion)
Cheers
--
Ionut G. Stan
I'm under construction |http://igstan.blogspot.com/
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
array_map() documentation) ...
--
Ionut G. Stan
I'm under construction | http://igstan.blogspot.com/
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
33 matches
Mail list logo