On 20/Oct/10 2:58 PM, Richard Quadling wrote:
Hello.
Take the following simple code.
?php
function foo($var1, $var2 = 2, $var3 = 3) {
echo $var1, $var2, $var3\n;
}
foo(10); // 10, 2, 3
foo(10, 20); // 10, 20, 3
foo(10, 20, 30); // 10, 20, 30
foo(10, null, 30); // 10, , 30
foo(10,, 30); //
On 21/Oct/10 1:17 PM, Richard Quadling wrote:
On 21 October 2010 08:52, Ionut G. Stanionut.g.s...@gmail.com 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
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
?php
abstract class AbstractServer {}
class ConcreteServer extends AbstractServer {}
abstract class AbstractClient {
abstract function
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
On 06/Aug/10 6:20 PM, Hannes Magnusson wrote:
On Fri, Aug 6, 2010 at 16:33, mathieu.suenmathieu.s...@easyflirt.com 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
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
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
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 construction | http://blog.igstan.ro/
--
PHP Internals - PHP Runtime
/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
?
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
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
() {
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
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. Stan
I'm under construction | http://blog.igstan.ro/
--
PHP
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
- PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
--
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
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
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
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
();
// ...
}
}
-- 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
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
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
foo(array $arr) {}
foo(string);
Actually, I'd use an exception class which extends from the builtin
ErrorException
class, but that's not the point. Anyway, probably Kalle Sommer Nielsen
is right,
and the way PHP already behaves in that regard should be kept. At least
for now.
--
Ionut G. Stan
language construct) would return the variable if
it were set and false if it was not.
Thanks for your time, i know this has probably been talked to death in one
form or other.
Ólafur Waage
olaf...@gmail.com
--
Ionut G. Stan
I'm under construction | http://igstan.blogspot.com/
--
PHP
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 now. So
for?
Any feedback appreciated.
--
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
.
Cheers,
On Mon, Mar 30, 2009 at 10:04 AM, Ulf Wendelulf.wen...@phpdoc.de 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
.
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 line 18
Warning
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
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 construction | http
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
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 Development Mailing
32 matches
Mail list logo