Hi,
2012/7/19 Paul Dragoonis dragoo...@gmail.com
Why is your try block only going to contain 1 line, and that's
throwing an exception??
try
throw new Exception('foobar');
catch(Exception $e)
Braces are a good thing, they give structure and stop people from
mis-reading things and
2012/7/19 Rafael Dohms lis...@rafaeldohms.com.br
On Thu, Jul 19, 2012 at 12:03 PM, Charlie Somerville
char...@charliesomerville.com wrote:
This has code readability problem written all over it. When maintaining
it
also has problems, like with the bracket-less if's.
You would need to
Hi,
What should a return value in 'finally' mean?
Regards,
Sebastian
2012/7/24 Rafael Kassner kass...@gmail.com
Thanks Laruence.
If I perform something like this:
function test() {
try {
return 2;
} catch (Exception $e) {
} finally {
return 3;
}
}
Sorry ... to the list instead.
-- Forwarded message --
From: Sebastian Krebs krebs@gmail.com
Date: 2012/7/24
Subject: Re: [PHP-DEV] [RFC] Supports 'finally' keyword for PHP exceptions
To: Laruence larue...@php.net
Hi,
2012/7/24 Laruence larue...@php.net
On Tue, Jul 24
2012/8/15 Stan Vass sv_for...@fmethod.com
But variable typehints
don't serve any such purpose. Actually, one could even say that they
don't serve *any* purpose, short of providing the IDE with type
information, because your code would work just as well even without
the type check. If the
Hi,
because it fits into the context (even if it's slightly offtopic): Can I
throw in, that I would like to see autoloading for functions? :)
Regards,
Sebastian
2012/8/15 Nikita Popov nikita@gmail.com
On Wed, Aug 15, 2012 at 12:59 PM, Giedrius Dubinskas
d.giedr...@gmail.com wrote:
2012/8/15 Giedrius Dubinskas d.giedr...@gmail.com
On Wed, Aug 15, 2012 at 2:19 PM, Yahav Gindi Bar g.b.ya...@gmail.com
wrote:
On Wed, Aug 15, 2012 at 2:09 PM, Paul Dragoonis dragoo...@gmail.com
wrote:
Comments inline.
On Wed, Aug 15, 2012 at 11:59 AM, Giedrius Dubinskas
at 2:26 PM, Sebastian Krebs krebs@gmail.com
wrote:
Hi,
because it fits into the context (even if it's slightly offtopic): Can I
throw in, that I would like to see autoloading for functions? :)
Regards,
Sebastian
2012/8/15 Nikita Popov nikita@gmail.com
On Wed, Aug 15
2012/8/15 Giedrius Dubinskas d.giedr...@gmail.com
On Wed, Aug 15, 2012 at 4:54 PM, Sebastian Krebs krebs@gmail.com
wrote:
2012/8/15 Giedrius Dubinskas d.giedr...@gmail.com
On Wed, Aug 15, 2012 at 2:19 PM, Yahav Gindi Bar g.b.ya...@gmail.com
wrote:
On Wed, Aug 15, 2012 at 2:09 PM
Hi,
after reading this mail: Is it just me or is a userspace implementation
really that trivial?
function ensure($object, $class) {
if ($object instanceof $class) {
return $object;
}
throw new InvalidArgumentException(sprintf('Object is not of type %s',
$class));
}
And then
Hi,
Don't know, how complicated this is (and also someone (not me) must
implement it, because I can't :X), but to be in sync with the operators
the short ternary operator should be usable in conjunction with the
assignment like the other binary operators. Don't know, if anybody
understands
Am 19.08.2012 00:20, schrieb Andrew Faulds:
On 18/08/12 03:36, Tjerk Meesters wrote:
Sent from my iPhone
On 18 Aug, 2012, at 5:41 AM, Sebastian Krebs krebs@gmail.com wrote:
Hi,
Don't know, how complicated this is (and also someone (not me) must
implement it, because I can't :X
Am 20.08.2012 19:00, schrieb Andrew Faulds:
On 20/08/12 17:47, Herman Radtke wrote:
May be we should have something like
array_delete_if($array, function($v, $k=null) { if ($v == 300) return
true; })
So array_filter?
I'll use it or like for deleting, but the point of this thread is
Sebastian Krebs:
What I don't understand is, why should every function goes directly into
the core, if you can achieve exactly the same without core changes?
This comment from Sebastian got me thinking. It's true. Every-someone has
his own views on what is absolutely necessary and should
2012/8/21 Andrew Faulds a...@ajf.me
On 21/08/12 21:44, Lars Schultz wrote:
Am 20.08.2012 22:51, schrieb Andrew Faulds:
On 20/08/12 21:43, Lars Schultz wrote:
It's a ridiculous argument, IMO. Nothing you could add to core couldn't
be implemented in userland code somehow. (yes, that's
Montag, 20. August 2012 um 22:43 schrieb Lars Schultz:
Am 20.08.2012 19:43, schrieb Sebastian Krebs:
What I don't understand is, why should every function goes directly
into
the core, if you can achieve exactly the same without core changes?
This comment from Sebastian got me
Hi,
From my users point of view: I would like to see it. Maybe not in this
implementation/syntax, especially because it hasn't a special syntax
(but imo it should to make the impact more obvious/prominent). With the
joint points as string and the common function call I can imagine it can
get
trace, what happens
when and why. Also as I mentioned I don't even have any better idea ;)
Regards,
Sebastian
2012/8/23 Sebastian Krebs krebs@gmail.com
Hi,
From my users point of view: I would like to see it. Maybe not in this
implementation/syntax, especially because it hasn't
trigger a notice like
| $foo['xy'] = $foo['xy'] ?: 'bar';
would do.
Regards,
Sebastian
Am 17.08.2012 23:41, schrieb Sebastian Krebs:
Hi,
Don't know, how complicated this is (and also someone (not me) must
implement it, because I can't :X), but to be in sync with the operators
the short ternary
Am 24.08.2012 23:11, schrieb Ferenc Kovacs:
On Fri, Aug 17, 2012 at 11:41 PM, Sebastian Krebs krebs@gmail.com
mailto:krebs@gmail.com wrote:
Hi,
Don't know, how complicated this is (and also someone (not me) must
implement it, because I can't :X), but to be in sync
Am 25.08.2012 01:00, schrieb Stas Malyshev:
Hi!
To point that out: I _don't_ want to change the behaviour, which means
| $foo['xy'] ?:= 'bar';
would trigger a notice like
| $foo['xy'] = $foo['xy'] ?: 'bar';
Then I personally don't see much point in it. Saving a couple of
keystrokes IMHO
Am 25.08.2012 18:38, schrieb Ferenc Kovacs:
would this trigger a notice if $foo is not defined?
if yes, then it would be different from the current behavior of the
ternary operator.
Couldn't believe it, thus I tested it myself
snip
Don't know, what you are
Am 25.08.2012 01:53, schrieb Nikita Popov:
On Sat, Aug 25, 2012 at 1:49 AM, Sebastian Krebs krebs@gmail.com wrote:
Hi,
It's like with any other compound operator: A _real_ reason isn't there. But
saying It's not worth it is something I can live with (even if I don't
know how much effort
Am 26.08.2012 01:57, schrieb Ferenc Kovacs:
So you are saying that your (teams) IDE doesn't tell you the method
signature which contains also the default values?
I guess that the fact that many of the php core functions have
optional
arguments and non null defaults
Hi,
As far as I can see everything works as expected: Because HEAD-requests
should not send any content, you don't get any.
Regards,
Sebastian
2012/9/12 Ivan Enderlin @ Hoa ivan.ender...@hoa-project.net
Hello,
It is probably me but it seems like the build-in HTTP server does not well
Am 16.09.2012 22:20, schrieb Hannes Magnusson:
On Sun, Sep 16, 2012 at 8:50 PM, Michael Felt mamf...@gmail.com wrote:
Hi. My apologies if I missed an obvious clue somewhere, but I am looking
for a configure
option to enable nearly everything - to be supplemented by select disable
statements.
2012/9/17 jpauli jpa...@php.net
I'm confused.. --enable-all is already supported, just like
--disable-all ?
-Hannes
AFAIR no :) We have a --disable-all , but no --enable-all.
I'm +1 to add such an option if possible :)
Julien.P
I don't like the idea, because once --enable-all is
2012/9/19 Tomas Creemers tomas.creem...@gmail.com
Hi all,
If this is going to be implemented as a class, what is the advantage
of instantiation for this? Unless I'm missing it, I would propose that
the functions are made static.
In other words, I would prefer this:
echo
2012/9/19 Steve Clay st...@mrclay.org
Hello,
https://wiki.php.net/rfc/**alternative_callback_syntaxhttps://wiki.php.net/rfc/alternative_callback_syntaxis
a proposal for a simple alternative syntax for creating function
callbacks.
The basics: Given a function/method call, replace the
2012/9/19 Tomas Creemers tomas.creem...@gmail.com
On Wed, Sep 19, 2012 at 8:34 AM, Sebastian Krebs krebs@gmail.com
wrote:
2012/9/19 Tomas Creemers tomas.creem...@gmail.com
Hi all,
If this is going to be implemented as a class, what is the advantage
of instantiation
2012/9/19 Tomas Creemers tomas.creem...@gmail.com
On Wed, Sep 19, 2012 at 8:34 AM, Sebastian Krebs krebs@gmail.com
wrote:
2012/9/19 Tomas Creemers tomas.creem...@gmail.com
Hi all,
If this is going to be implemented as a class, what is the advantage
of instantiation
2012/10/9 Christian Kaps christian.k...@mohiva.com
Hi,
typehinting should definitely be available for this feature. But I have
another question. Why not go more consistent with the rest of the language?
I have mentioned this previously as the first proposal comes up on the
list. In my
2012/10/11 Clint Priest cpri...@zerocue.com
Why is everyone so dead set against read-only and write-only?
my opinion
1.
public read-only $hours {
get { /* .. */ }
set { /* .. */ }
}
And now? That this is even possible is reason enough for me. Especially now
the engine must take
2012/10/11 Clint Priest cpri...@zerocue.com
Rather than go to the trouble of finding a reasonable way to hold a vote
on these issues, is there anyone against the following changes:
1) Eliminate the ability for an accessor to be called via
$o-__getHours(), the accessor functions will be
2012/10/25 crankypuss fullm...@newsguy.com
On 10/24/2012 11:34 PM, Sherif Ramadan wrote:
On Thu, Oct 25, 2012 at 1:03 AM, JJ ja...@php.net wrote:
Hey all - I'd like start a discussion around pull request 221
(https://github.com/php/php-**src/pull/221https://github.com/php/php-src/pull/221
2012/11/5 Peter Cowburn sala...@php.net
Pushing to internals list.
On 5 November 2012 20:41, Levi Morrison morrison.l...@gmail.com wrote:
I hear people complaining about this out in user-land all the time, but
I've never seen anyone from internals respond. With practically everyone
using
2012/11/6 Laupretre François francois.laupre...@francetv.fr
I've asked this question for a while (one, or two years ago or so).
Must say, that I didn't remember the answer, but I would like to see
autoloading for namespace-constants and functions too :)
I proposed extending the autoload
2012/11/7 Laupretre François francois.laupre...@francetv.fr
De : sebastian.krebs.ber...@gmail.com
I hope you find more support on this than I had. Technically
speaking,
it would be easy to extend autoloading to functions and constants. It
can even be done without BC breaks, combining
2012/11/8 Anthony Ferrara ircmax...@gmail.com
Florin,
On Thu, Nov 8, 2012 at 6:42 AM, Florin Razvan Patan
florinpa...@gmail.comwrote:
Hello,
After a talk on the Symfony framework here:
https://github.com/symfony/symfony/issues/5911
Long story short, the point that @Seldaek
Hi,
Maybe it goes way to far, but there is a PECL-extension [1], that allows to
overload every(?) operator. However, it seems to be unmaintained for 6
years now and will probably not work anymore, but it may be usable as a
starting point. Python provides this too [2]
Regards,
Sebastian
[1]
2012/11/10 Laupretre François francois.laupre...@francetv.fr
Given the strong opposition of core devs against this feature in the past,
I want a vote on the RFC before I start working on a patch.
Before this vote can take place, as you note, we need to solve the
function fallback issue: in
2012/11/11 Patrick E. zeno...@gmail.com
Hi,
use My\Math
Math\sin();
very intuitive.
And it would be a bit like Python Modules,
where you import symbols (including global variables of the module)
of modules:
import math
print math.sin(math.pi)
Const autoload would also make sense,
2012/11/20 Lester Caine les...@lsces.co.uk
Pierre Joye wrote:
https://www.google.de/search?**q=php+mysqli+tutorialhttps://www.google.de/search?q=php+mysqli+tutorial
Which gives About 273,000 results and the first of them are causing more
confusion with PDO alternative.
BUT newcomers know
2012/11/26 Ivan Enderlin @ Hoa ivan.ender...@hoa-project.net
Hi internals,
I would to modify a \DateTime object to the current time, thus I wrote
this:
$d = new \DateTime('+1 hour');
$d-modify('now');
It did not work. Why? Because the documentation (http://php.net/datetime.*
Hi,
are you mabe just looking for
$date-add(new DateInterval('P15D'));
?
2012/12/10 Christian Stoller stol...@leonex.de
Hi internals,
what do you think about improving the modification functionality of the
DateTime class. I always get a cold shiver, when I write something like
this:
2013/1/6 Yahav Gindi Bar g.b.ya...@gmail.com
On Mon, Jan 7, 2013 at 12:41 AM, Marco Pivetta ocram...@gmail.com wrote:
I think that our work is to isolate each annotation so it'll be easy to
access, then, it'll be easy enough to write the code that creates
complex
annotations, such as
2013/1/14 Johannes Schlüter johan...@schlueters.de
On Mon, 2013-01-14 at 04:10 +, Paulo Henrique Torrens wrote:
Hi,
I'm currently interested in two features I'd like to see in PHP; how do
I proceed to request/propose them? I'd be glad to help implementing them as
well, if necessary.
; which
closure?!?
I guess you are in fact looking for regular instance methods.
2013/1/14 Sebastian Krebs krebs@gmail.com:
2013/1/14 Alexander Lissachenko lisachenko...@gmail.com
Hi! It's my first letter here )
I want to suggest a small improvement for ReflectionMethod-invoke
2013/1/22 Lester Caine les...@lsces.co.uk
Clint Priest wrote:
There seems to be a lot of userland support for this proposal from people
who
don't have voting rights.
And what about the userland people who don't want the additional
complexity who don't have voting rights?
Don't use it.
2013/1/25 Thomas Bley thbley+...@gmail.com
One thing I can guarantee is that if we add it to core in its current
condition it will delay 5.5 by 6+ months if not longer.
I think it is fine if APC doesn't support all features of PHP. When
there is a clear documentation, everybody can decide
2013/1/25 Pierre Joye pierre@gmail.com
hi,
On Fri, Jan 25, 2013 at 3:37 PM, Martin Keckeis
martin.kecke...@gmail.com wrote:
Hello,
you are right Damian.
Also today on a german page:
2013/1/31 Chris Wright chr...@aquacool.ltd.uk
I propose the following syntax:
php://memory/id
php://temp/id/maxmemory:size
I would very much like to see this as well.
Would this also allow you to open multiple pointers to the same bucket?
For example would this work?
?php
2013/1/31 Ivan Enderlin @ Hoa ivan.ender...@hoa-project.net
On 31/01/13 12:00, Sebastian Krebs wrote:
2013/1/31 Chris Wright chr...@aquacool.ltd.uk
I propose the following syntax:
php://memory/id
php://temp/id/maxmemory:**size
I would very much like to see this as well
2013/2/3 Sebastian Bergmann sebast...@php.net
Am 03.02.2013 18:07, schrieb Sebastian Bergmann:
Can you explain why you are using eval() instead of a real anonymous
function? Thanks!
Please ignore my email; I mixed up create_function() and eval(). Then
again, your code still does not
2013/2/12 Asbjørn Sannes asbjorn.san...@interhost.no
https://wiki.php.net/rfc/**mysqlnd_localhost_overridehttps://wiki.php.net/rfc/mysqlnd_localhost_override
I propose we introduce a new option called mysqlnd.localhost_override
which enables a system administrator or php distributor to
2013/2/14 Ivan Enderlin @ Hoa ivan.ender...@hoa-project.net
Hello Julien,
On 14/02/13 15:29, Julien Pauli wrote:
On Thu, Feb 14, 2013 at 3:03 PM, Ivan Enderlin @ Hoa
ivan.ender...@hoa-project.net wrote:
Hi internal,
A missing feature in PHP is a file system watcher/monitoring
2013/2/15 Ivan Enderlin @ Hoa ivan.ender...@hoa-project.net
On 15/02/13 14:20, Sebastian Krebs wrote:
2013/2/15 Ivan Enderlin @ Hoa ivan.ender...@hoa-project.net**
Hi Stas,
On 14/02/13 22:37, Stas Malyshev wrote:
Hi!
A missing feature in PHP is a file system watcher/monitoring
2013/2/20 Klaus Ufo klaus...@yahoo.fr
Hi there !
We all know that the current PHP API has flaws. Maybe we could use
namespaces to build a new coherent PHP API ? Like :
- \arr
- \num
- \str
and so on. Advantages :
- no more global functions
Just to throw that in: Even if you pack
2013/2/21 Tjerk Anne Meesters datib...@php.net
Hi,
I found myself wanting a feature of array_filter() with which I can perform
filtering based on the array key instead of the value.
To scratch this itch, I decided to dive into C again and just add the
feature. My proposal is to add a third
2013/2/22 Rasmus Schultz ras...@mindplay.dk
I've been thinking about this RCF for a while now:
https://wiki.php.net/rfc/trailing-comma-function-args
It just doesn't seem necessary - the only time I've ever found something
like this to be necessary, is when a function takes closures or other
2013/2/25 Jens Riisom Schultz ibmu...@me.com
Hi everybody,
I have read up on this, and done some testing.
First up, my findings with PHP5.5 alpha5:
?php
namespace spacy;
class classy {
public static function fqcn() {
/* This works but is not useful enough: */
2013/2/25 Nils Andre nilsan...@gmail.com
Hi Everyone on the list, I have no RFC Karma here so far, so I post this to
the list at first. There has been ongoing discussion about new APIs and so
fort, so this is a suggestion for language cleanup by Autoboxing. I'd
really appreciate comments.
2013/2/26 Lazare Inepologlou linep...@gmail.com
Hello Nikita,
2013/2/25 Nikita Popov nikita@gmail.com
Hi internals!
PHP 5.4 added support for expressions of the kind (new Foo)-bar(), (new
Foo)-bar and (new Foo)['bar'].
I guess it must have been discussed, but Is there any
2013/2/27 Jens Riisom Schultz ibmu...@me.com
Hi,
I just want to get a feel for whether the following idea would be
instantly rejected (for example I get the feeling that adding keywords is a
big deal):
Often, when writing frameworks, you need to make public or protected
functionality or
2013/2/27 Frank Schenk frank.sch...@2e-systems.com
Hi Crypto Compress,
big congratz to that name, your mummy Hash Compress and your daddy Image
Compress must be very proud!
SCNR
Am 02/27/2013 03:54 PM, schrieb Crypto Compress:
Hello Mike,
thank you! It is a useful feature to me.
2013/2/27 Steve Clay st...@mrclay.org
On 2/27/13 3:18 AM, Nikita Nefedov wrote:
I, for one, think it should be solved on the IDE side. I used a lot of
Doctrine's internal
methods lately and if they would be not accessible I wouldn't be able to
do a lot of things.
Of course internal
2013/2/28 Jens Riisom Schultz ibmu...@me.com
Hi everyone,
(I got hooked off this discussion, so I have tried to keep up by reading
the digest... This makes it impossible for me to correctly interleave my
comments, so I'll just top post or whatever the term is) (I'm sure this
has been
2013/3/5 Lazare Inepologlou linep...@gmail.com
2013/3/5 Tom Boutell t...@punkave.com
Can't you do this already? memory_limit can be fetched via ini_read,
and together with memory_get_usage you should be able to check for
this sort of thing. Admittedly having to parse memory_limit (which
2013/3/7 Stas Malyshev smalys...@sugarcrm.com
Hi!
RFC updated.
Any other comments about this RFC?
Could you provide a use case for this - which practical value this has?
It also still contains factually incorrect claim that unset() is a
function and that there's some inconsistency in
2013/3/15 Steve Clay st...@mrclay.org
I'm sure this question has been discussed before, so if anyone can point
to me to links or briefly recap I'd appreciate it.
Why can't we make $someCallable() always work? E.g. http://3v4l.org/FLpAq
I understand the problem of $obj-foo() where -foo is a
2013/3/15 Steve Clay st...@mrclay.org
My subject was misleading. I didn't mean to suggest call_user_func() be
removed, just be made unnecessary by direct call syntax.
This should make the inconsistency clearer: http://3v4l.org/L8Yvq
On 3/15/13 10:21 AM, Sebastian Krebs wrote:
You don't
2013/3/15 Stas Malyshev smalys...@sugarcrm.com
Hi!
why not enable then this getCallback()();?
There's an RFC for that: https://wiki.php.net/rfc/fcallfcall
but it has some edge cases which I didn't have time to figure out yet.
In the long run I think it would be great :) Earlier I also
2013/5/1 Rasmus Schultz ras...@mindplay.dk
Any PHP dev who works with a mainstream framework does this daily, but the
frameworks rely on strings for property-names.
Take this example from the Symfony manual, for example:
class Task
{
protected $task;
Hi,
Are you going to cover autoloading of functions too?
Regards,
Sebastian
2013/5/2 Igor Wiedler i...@wiedler.ch
Hi internals,
Since there's been no major objection to this proposed RFC, I will go
ahead and create it on the wiki. I will amend it to address some of the
points that were
to simply use the prefixed one,
so the benefit seems quite small to me :X
use MyFoo\Bar\MathFunctions as math;
$x = math\sin($y);
Just saying :)
Regards,
Sebastian
On May 2, 2013, at 11:40 PM, Sebastian Krebs krebs@gmail.com wrote:
Hi,
Are you going to cover autoloading
2013/5/7 Thomas Anderson zeln...@gmail.com
If you do user_error('whatever') it'll show, as the line number for that
error, the line number on which that user_error() call is made. It'd be
nice if you could control the line number and file name that was displayed.
eg.
?php
function test()
2013/5/7 Bob Weinand bobw...@hotmail.com
Am 7.5.2013 um 18:25 schrieb Ferenc Kovacs tyr...@gmail.com:
On Tue, May 7, 2013 at 6:09 PM, Thomas Anderson zeln...@gmail.com
wrote:
If you do user_error('whatever') it'll show, as the line number for that
error, the line number on which that
2013/5/7 Thomas Anderson zeln...@gmail.com
On Tue, May 7, 2013 at 2:04 PM, Sebastian Krebs krebs@gmail.comwrote:
2013/5/7 Thomas Anderson zeln...@gmail.com
If you do user_error('whatever') it'll show, as the line number for that
error, the line number on which that user_error
2013/5/7 Bob Weinand bobw...@hotmail.com
Am 7.5.2013 um 21:07 schrieb Sebastian Krebs krebs@gmail.com:
2013/5/7 Bob Weinand bobw...@hotmail.com
Am 7.5.2013 um 18:25 schrieb Ferenc Kovacs tyr...@gmail.com:
On Tue, May 7, 2013 at 6:09 PM, Thomas Anderson zeln...@gmail.com
wrote
2013/5/7 Bob Weinand bobw...@hotmail.com
Am 7.5.2013 um 22:11 schrieb Stas Malyshev smalys...@sugarcrm.com:
Hi!
And today we have the problem that we cannot use in any useful manner
trigger_error in libraries, when we don't know where the error
originates from. You debug today
2013/5/28 Amaury Bouchard ama...@amaury.net
2013/5/28 Maciek Sokolewicz maciek.sokolew...@gmail.com
It’s a good idea in general but what about having it for variables as
well? Could open interesting possibilities for an optimizer.
final $foo = str;
$foo = bar; // bails out
Don't
2013/5/28 Amaury Bouchard ama...@amaury.net
2013/5/28 Sebastian Krebs krebs@gmail.com
print($$b);
print(constant($b));
It's definitely different. In your example you have to know that you are
manipulating constants only.
And in your example you have to know, that you
2013/6/27 Tjerk Anne Meesters datib...@php.net
On Thu, Jun 27, 2013 at 4:27 PM, Florin Patan florinpa...@gmail.com
wrote:
On Thu, Jun 27, 2013 at 10:17 AM, Tjerk Anne Meesters datib...@php.net
wrote:
On Wed, Jun 26, 2013 at 11:20 PM, Jeremy Curcio j.cur...@icloud.com
wrote:
2013/6/27 Kingsquare.nl - Robin Speekenbrink ro...@kingsquare.nl
I'd thought this would have been `solved` by allowing the list statement in
foreach (
http://nl3.php.net/manual/en/control-structures.foreach.php#control-structures.foreach.list
)
Doesnt that solve your problem already?
2013/6/27 Florin Patan florinpa...@gmail.com
On Thu, Jun 27, 2013 at 4:10 PM, Christian Stoller stol...@leonex.de
wrote:
Hi internals,
during my current work I had an idea for shorter array iteration with
foreach. I haven’t seen such a syntax until now, but I think it is easy to
2013/6/27 Anthony Ferrara ircmax...@gmail.com
Stas et al,
So, the question of what is the difference between the two errors
remains unanswered. If the whole diff is that one of the errors has word
recoverable in the message, it's not substantial difference at all and
one that does not
2013/7/14 Giuseppe Ronca giuseppe.ron...@gmail.com
Php is now used by many CMS, many of which use a modular system with a wide
range of add-ons developed by third parties. This can cause various
conflicts, such as when two or more external components using the same
library (i.g. with a
2013/7/15 Lester Caine les...@lsces.co.uk
Marco Pivetta wrote:
PS i'm not so practice with composer ( used few times ) but when modular
systems , such as CMS , give the possibility to extends them with
external
components...i don't think that composer could solve this problem.
It is
2013/7/16 Giuseppe Ronca giuseppe.ron...@gmail.com
I've studied Composer and as i thought ..it's a component installer
(implementing an autoload system) .. nothing else ( i can have similar
result using git submodules )
anyway , *you can have a class collision using or not using composer (
2013/7/16 Giuseppe Ronca giuseppe.ron...@gmail.com
You can have multiple objects from the same type in different
implemenations in the same process?
No i'm not saying it.
OK, what then? You have A and B, that both rely on X, but in version 1 and
2. Both A and B are used at the same time.
Hi,
Whats about constants?
Regards,
Sebastian
Am 19.07.2013 19:30 schrieb Igor Wiedler i...@wiedler.ch:
Hello internals,
I posted the initial idea for a use_function RFC a few months back. I
would like to make the proposal official now, and open it for discussion.
I also did some work on
Hi,
Thanks for that.
But actually I don't see: Why is use not enough? As far as I can see your
example, why it would introduce a BC, doesn't really match to original
question, why use function is used. Especially I don't see any ambiguity:
foo(); // Always a function. You cannot call classes
2013/7/23 Stas Malyshev smalys...@sugarcrm.com
Hi!
But actually I don't see: Why is use not enough? As far as I can see
your
example, why it would introduce a BC, doesn't really match to original
Consider this:
use a\b\c as foo;
foo();
Now it would resolve to global function foo().
2013/7/23 Igor Wiedler i...@wiedler.ch
Hi Sebastian,
The reason is precisely to avoid BC breaks, such as the one that you
quoted from the FAQ.
Are you suggesting that such a BC break is acceptable for 5.6?
I don't fear BCs and actually I prefer BCs against weak compromises. This
depends
Am 14.08.2013 08:17 schrieb Christian Stoller stol...@leonex.de:
Hello all,
I'd like to propose a new RFC for 5.NEXT:
https://wiki.php.net/rfc/const_scalar_expressions
This allows for defining constant expressions which are resolved at
compile
time.
What should that be for?
Hi,
Just asking: Does this cover only declarations, or every constant
expression, for example
$weeks = $secs / (60 * 60 * 24 * 7);
becomes to the opcode-equivalent of
$weeks = $secs / (604800);
?
2013/8/14 Anthony Ferrara ircmax...@gmail.com
Stas,
On Wed, Aug 14, 2013 at 5:01 AM, Stas
2013/8/22 Yasuo Ohgaki yohg...@ohgaki.net
Hi all,
I realized that not many users are using more entropy parameter
Therefore, I made
Request #65501 uniqid(): More entropy parameter should be true by default
https://bugs.php.net/bug.php?id=65501
The comment title explains what this FR is.
2013/8/22 Leigh lei...@gmail.com
On 22 August 2013 13:39, Sebastian Krebs krebs@gmail.com wrote:
Tbh I don't get the real problem with the _current_ behaviour. Who need
the
entropy, can set it as second parameter and I am not sure, if it is wise
to
use uniqid() for _security purposes_
exists for functions
and (namespace)constants too, because using them is quite uncomfortable
right now compared to classes and the decision _how_ to load them would
be on the developers-side anyway.
Sebastian Krebs
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http
_how_ to load them would be on the
developers-side anyway.
Sebastian Krebs
--
PHP Internals - 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
1 - 100 of 156 matches
Mail list logo