Hi Internals
I wondering if apc.slam_defence and apc.write_lock should be turned
on at the same time?
The default for APC v3.1.13 have both settings turned on.
But the documentation says apc.slam_defence is Deprecated by
apc.write_lock.
Hi Nikita,
What you're asking for is useful in other languages, but it doesn't match
the style of PHP which is to be a quick and easy type-less scripting
language.
What you're proposing is clearly more suited to something like Java or C#,
but doesn't really belong here.
I'd also hate to see
No, this is useful in any OOP-language where there is such thing as type,
and people need to validate types.
I unerstand what you are saying about PHP being an easy language, but in
opinion if you don't want to use that feature you can not use it, as you
can not use typehinting in functions
On 21.10.2012, at 0:59, Nikita inefe...@gmail.com wrote:
Hello, list. I want to propose generics.
skip
So, what you think?
I'm against having this in PHP.
For IDEs, the better solution is to use generics-like syntax in docblocks.
--
PHP Internals - PHP Runtime Development Mailing List
To
Am 21.10.2012 um 13:33 schrieb Nikita Nefedov inefe...@gmail.com:
No, this is useful in any OOP-language where there is such thing as type, and
people need to validate types.
I question the need to validate types part. I'd say you're better off using a
completely different language if you
I see what you are trying to achieve, but I hope this will never make into
PHP mainly for impact on readability. I'd like to quote Eric Armstrong, a
passionate Java/Ruby dev:
I decry their very existence. They are the ultimate condemnation of
static
type checking--because their very addition
I actually don't have much experience with generics, so won't argue about
their readability, but this article is all about Java's implementation of
generics, so I don't know how much sense this article gives in that
context.
But it's ok, I see just one person that supported proposal. I think
Hi internals,
I'd like to propose a new short tag that echos with HTML escaping.
XSS is still a significant problem for PHP apps, but it is less common in
apps written with frameworks that provide automatic HTML escaping. However,
many developers are still writing straight PHP without any
On Sun, Oct 21, 2012 at 2:35 PM, Charlie Somerville
char...@charliesomerville.com wrote:
Hi internals,
I'd like to propose a new short tag that echos with HTML escaping.
XSS is still a significant problem for PHP apps, but it is less common in
apps written with frameworks that provide
How do you propose we customise the escaping of such things, using
htmlentities() or htmlspecialchars? What about the ENT_QUOTES options, or the
charset to be used (UTF-8)?
htmlspecialchars() with ENT_QUOTES and UTF-8 should be sufficient.
I'm personally not a fan of your new syntax
I would like to point out that in my mind `const` and `read-only` are
not necessarily the same thing. Read-only means that from outside the
class it cannot be modified; the internal class can change it whenever
it wants. Const means that once the value is set it will NEVER change.
Big difference.
If for some reason you need to enforce that nobody inherits it
and sets the property, then declaring a setter and issuing an
error or exception would suffice.
I meant to say declaring a `private or final setter`. Noticed that
after I sent it.
--
PHP Internals - PHP Runtime Development
I think that seems to be the consensus at this point, anyone disagree?
-Original Message-
From: Levi Morrison [mailto:morrison.l...@gmail.com]
Sent: Sunday, October 21, 2012 10:26 AM
To: Amaury Bouchard
Cc: Nikita Popov; Clint Priest; internals@lists.php.net
Subject: Re: [PHP-DEV]
Hi Rasmus,
Am 20.10.2012 um 23:02 schrieb Rasmus Lerdorf ras...@lerdorf.com:
[...]
Personally I would hate to see this anywhere near PHP.
Do you mind explaining the why? Isn’t it better than new
Collection(TypeAsAString) and custom assertions in each and every method of
that collection class?
Hi!
Hello, list. I want to propose generics.
Please no. If you need Java, you know where to find it. Java has a set
of great tools, great books, great community. And it's completely free.
Anybody who needs Java can just do it. I see no need to turn PHP into Java.
--
Stanislav Malyshev,
Hi!
I'd like to propose a new short tag that echos with HTML escaping.
What is HTML escaping? Different contexts need different escaping. For
outside tags it's one escaping, for tag attribute it's another, for JS
code context - yet another. Selecting just one use case and integrating
it into
Personally I'm hugely *not* a fan of more obscure syntax in PHP.
I agree with this sentiment. I think the traditional simplicity of PHP's
syntax has been one of its greatest traits. I'm not a fan of all of this
type of alternate syntax that has been steadily added.
Bryan
Hi!
I think we are still not on the same page here. The exact point is
to *not* put accessors into the method table. As such the accessors
aren't special, half-hidden methods (like they are with the current
implementation), rather they are *just* accessors and nothing else.
Accessors are
2012/10/21 Levi Morrison morrison.l...@gmail.com
I would like to point out that in my mind `const` and `read-only` are
not necessarily the same thing. Read-only means that from outside the
class it cannot be modified; the internal class can change it whenever
it wants. Const means that once
I don't disagree (sure, I campaigned to remove the read-only keyword).
But not writable is still different from private writing. Should we
loose any of these meanings?
2012/10/21 Clint Priest cpri...@zerocue.com
I think that seems to be the consensus at this point, anyone disagree?
On Sun, Oct 21, 2012 at 1:01 PM, Stas Malyshev smalys...@sugarcrm.com wrote:
Hi!
I'd like to propose a new short tag that echos with HTML escaping.
What is HTML escaping? Different contexts need different escaping. For
outside tags it's one escaping, for tag attribute it's another, for JS
21 matches
Mail list logo