Can you please add some code examples on the RFC, that get outputted as
pre tags.
Ideally demonstrating var_dump() output to inspect the return value of your
new function to get a clear indication of the input, and resulting output.
- Paul.
On Mon, May 14, 2012 at 11:21 AM, Gustavo Lopes
Hey,
Am i correct in assuming this is basically substr() for arrays.
On Mon, May 14, 2012 at 11:29 AM, Gustavo Lopes glo...@nebm.ist.utl.ptwrote:
On Mon, 14 May 2012 12:26:11 +0200, Paul Dragoonis dragoo...@gmail.com
wrote:
Can you please add some code examples on the RFC, that get
, Paul Dragoonis dragoo...@gmail.com
wrote:
Am i correct in assuming this is basically substr() for arrays.
No. That's a part of it. It also does indexes as keys (like array_slice)
and
multidimensional arrays, none of which have anything analogous in
strings.
--
Gustavo Lopes
Happy to patch this once someone confirms this is a bug and not
changed behaviour in 5.4.
- Paul.
On Tue, Apr 24, 2012 at 4:29 PM, Philip Olson phi...@roshambo.org wrote:
Hello everyone,
The following bug report brings up a good point:
https://bugs.php.net/61784
The
I don't see any fundamental benefit to having this in PHP.
It doesn't work around any current restrictions in the language.
It just looks like extra fluffy magic that we could do without.
- Paul.
On Tue, Apr 17, 2012 at 8:18 PM, Ivan Enderlin @ Hoa
ivan.ender...@hoa-project.net wrote:
Hi
-1.
PHP doesn't need more magic.
On Mon, Apr 9, 2012 at 4:53 PM, Nikita Popov nikita@googlemail.comwrote:
On Mon, Apr 9, 2012 at 5:10 PM, Tom Boutell t...@punkave.com wrote:
What if PHP supported a short tag for calling a method of $this?
Then one could write:
?@escape($foo) ?
On Sun, Apr 8, 2012 at 4:23 PM, Tom Boutell t...@punkave.com wrote:
Thanks, I have access now.
Do I need to have a patch in hand before publicizing an RFC?
No Tom, feel free to draft up your RFC, people will not necessarily be
voting on your patch but on the concept of it.
If the RFC voting
?php is a simple and effective way to enter php mode. File
extensions are really irrelevant.
This isn't a sensible idea.
On Sat, Apr 7, 2012 at 2:44 PM, Reindl Harald h.rei...@thelounge.net wrote:
you are not making valid points
you are proposing DANGEROUS changes!
what happens if PHP 5.4.x
thanks dsp and johannes for this nice tool.
On Tue, Mar 20, 2012 at 10:16 AM, David Soria Parra d...@php.net wrote:
Hi
with the php-src migrated to git we start receiving
pull request on github. A few things to notice:
- developers can pull the requests as described here:
On Thu, Mar 15, 2012 at 4:54 PM, Nikita Popov nikita@googlemail.com wrote:
On Thu, Mar 15, 2012 at 5:22 PM, Patrick ALLAERT patrickalla...@php.net
wrote:
2012/3/15 Nikita Popov nikita@googlemail.com:
If I am understanding the text correctly it is saying that
$f1 = f1();
$f2 =
On Thu, Mar 15, 2012 at 5:39 PM, Paul Dragoonis dragoo...@gmail.com wrote:
On Thu, Mar 15, 2012 at 4:54 PM, Nikita Popov nikita@googlemail.com
wrote:
On Thu, Mar 15, 2012 at 5:22 PM, Patrick ALLAERT patrickalla...@php.net
wrote:
2012/3/15 Nikita Popov nikita@googlemail.com:
If I am
Can you make sure that only scalar or array casts can be done?
I wouldn't want people to put class typehints in there such as
function foo( (SomeClass) $foo)
- Paul.
On Sun, Mar 4, 2012 at 1:28 AM, Anthony Ferrara ircmax...@gmail.com wrote:
Hey all,
I've drafted an RFC for the Parameter type
Good.
On Sun, Mar 4, 2012 at 2:03 PM, Anthony Ferrara ircmax...@gmail.com wrote:
Can you make sure that only scalar or array casts can be done?
I wouldn't want people to put class typehints in there such as
function foo( (SomeClass) $foo)
That's how it is implemented now. That'll generate
hints to work like this. Check if the
passed argument if of the correct type and, if not, try to cast it. Failure
to do so will lead to the E_RECOVERABLE_ERROR as today. ]
Lazare INEPOLOGLOU
Ingénieur Logiciel
2012/3/4 Paul Dragoonis dragoo...@gmail.com
Can you make sure that only scalar
It would make sense that the default value you're setting matches the
zval.type of the casted value.
You always want it to be an int, if you're doing (int) so setting it
to a string or array would not make sense.
- Paul.
On Sun, Mar 4, 2012 at 4:46 PM, Lazare Inepologlou linep...@gmail.com
Tried to do something the other day and had to write something a bit quirky
tht would have been super clean with a finally block.
+1000
On Tue, Feb 28, 2012 at 2:22 PM, Kiall Mac Innes ki...@managedit.ie wrote:
+1000
This is a feature that I've always wanted in PHP, My main reason being to
On Tue, Feb 28, 2012 at 10:00 PM, Rasmus Lerdorf ras...@lerdorf.com wrote:
On 02/28/2012 01:25 PM, Christian Ferrari wrote:
Dear all,
I'm asking your help because I'm not able to solve an issue probably
related to some foolish mistake I have not yet discovered.
I'm trying to develop an
2012/2/27 Johannes Schlüter johan...@schlueters.de
Hi,
PHP is no strickt-typed language. Changing this is a massive change, if
you want to go there: There are plenty of other languages.
If you want this to be an optional feature:
a) It's not optional (one has to maintain code written by
On Sat, Jan 28, 2012 at 7:17 PM, Justin Martin frozenf...@php.net wrote:
Hello everyone,
For the result of session_status(), the corresponding constants for the
sessions state are
- PHP_SESSION_DISABLED = 0
- PHP_SESSION_NONE = 1
- PHP_SESSION_ACTIVE = 2
I'd like to suggest we change
On Sat, Jan 28, 2012 at 9:14 PM, Sanford Whiteman
swhitemanlistens-softw...@cypressintegrated.com wrote:
I believe comparing the value against a constant, is always more
readable than wondering what truthy means. if(session_status() ===
PHP_SESSION_ACTIVE) is much self-documenting than the
On Sat, Jan 28, 2012 at 9:53 PM, Justin Martin frozenf...@php.net wrote:
Someone actually just pointed out to me that if(-1) returns true. In that
case, I suppose my suggestion doesn't quite work.
The reason I suggest this is that I suspect people will constantly be
looking up what the
Hi David,
Thanks for the great push on the DVCS push to git. I believe I speak for
many people when I say your hard work is really appreciated.
Look forward to testing out the git installation.
- Paul.
On Wed, Jan 25, 2012 at 11:36 PM, David Soria Parra d...@php.net wrote:
Hi Internals,
we
On Tue, Jan 24, 2012 at 11:12 PM, Christopher Jones
christopher.jo...@oracle.com wrote:
On 01/24/2012 03:11 PM, Justin Martin wrote:
Hello,
With some frequency, I find bugs which are not bogus, so much as they
are reported based on a misunderstanding. Usually this happens for
Thanks for the feedback Gustavo.
New patch is here: https://gist.github.com/1582997
Test case: https://gist.github.com/1583022
Comments are inline.
On Mon, Jan 9, 2012 at 8:17 AM, Gustavo Lopes glo...@nebm.ist.utl.pt wrote:
On Mon, 09 Jan 2012 04:59:09 +0100, Paul Dragoonis dragoo...@gmail.com
,
ZEND_ACC_PUBLIC)
SPL_METHOD(SplDoublyLinkedList, clear)
{
RETURN_TRUE;
}
Can someone help me out?
Thanks,
Paul Dragoonis.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Here's the patch. At the moment my clear() method clones the
functionality of count() just as a prototype to get things working
before i make it do the actual clear functionality.
Patch attached to this email, made using 'svn diff'
- Paul Dragoonis.
On Sun, Jan 8, 2012 at 4:38 PM, Etienne
PHP 5_4 branch.
Here's the diff as a gist: https://gist.github.com/e3e1da28123017ba568d
On Sun, Jan 8, 2012 at 5:43 PM, Etienne Kneuss col...@php.net wrote:
It works fine here on trunk, what code-base are you targetting?
Best,
On Sun, Jan 8, 2012 at 18:31, Paul Dragoonis dragoo...@gmail.com
Hey Internals,
I've finished the patch, and with approval i'd like to push to trunk,
even though i'm aware we have a 5_4 branch code freeze.
Can someone review my work and provide feedback/approval?
[1] https://gist.github.com/1580974
Thanks,
Paul Dragoonis.
On Sun, Jan 8, 2012 at 6:18 PM
I agree with Dmitri and Ferenc.
-1 on this idea, it's unnecessary.
the reason for this is simple actually at the moment if you want to include
a file for usage but want to check it exists you have todo the following
if (file_exists(/file/located/here.php)) {
$cFile = /file/located/here.php;
it.
I agree with Rasmus here. A lot of people keep display_errors on, even
when they shouldn't.
It log_errors is on, it should go to the error_log, but with
display_errors it should never be sent back to the browser.
- Paul Dragoonis.
The alternative is to just not have any error message
can get reviewed and evaluated.
From there things can progress to the point where they're committed to
trunk, and thus merged into the appropriate branch (5_4 for example).
Hope this helps clear up the process.
Thanks,
Paul Dragoonis.
On Sat, Dec 31, 2011 at 9:15 AM, Adam Blackburn regal
in.
Lets not go there please..
Thanks,
Paul Dragoonis.
-Rasmus
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Barbu,
This is how constants work in all viable languages such as C/++.
They are not 'variables of data', they contain scalar values so that
you can have a maintainable source for your value to refer to later.
http://msdn.microsoft.com/en-us/library/357syhfh(v=vs.80).aspx
I believe constants
2011/12/19 Ángel González keis...@gmail.com:
On 19/12/11 21:23, Paul Dragoonis wrote:
Barbu,
This is how constants work in all viable languages such as C/++.
I disagree. In C you can have:
const data foo[] = { { Data1, 2 }, { Data2, 78 } };
Agreed, i was more thinking of #define (not const
Format looks good DSP.
On Thu, Dec 15, 2011 at 4:19 PM, David Soria Parra d...@php.net wrote:
As outlined in my previous post. An author in git is identified
by NAME EMAIL. We will rewrite commit information to match
this format during the SVN to Git migration. At the moment
this affects
?
Regards,
Paul Dragoonis.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks for the response guys.
It wasn't important that I casted my value I was just being pedantic
in the first place. Removing the cast stops be from being hit with
INT_MAX and INT_SIZE.
Cheers!
Paul Dragoonis.
On Sat, Nov 19, 2011 at 1:53 PM, Anthony Ferrara ircmax...@gmail.com wrote:
If I'm
Link us to a http://gist.github.com paste please Yasou. Thanks.
On Sat, Nov 19, 2011 at 9:45 PM, Yasuo Ohgaki yohg...@ohgaki.net wrote:
It seems gmail broke newlines :(
but you'll see the idea.
--
Yasuo Ohgaki
yohg...@ohgaki.net
2011/11/20 Yasuo Ohgaki yohg...@ohgaki.net:
This is not a
On Tue, Nov 15, 2011 at 10:09 PM, Patrick ALLAERT
patrickalla...@php.net wrote:
Hello,
Calling session_regenerate_id() inside a same request will generate
multiple Set-Cookie headers
example code:
?
session_start();
session_regenerate_id();
session_regenerate_id();
?
will result in,
.
Regards,
Paul Dragoonis.
Cheers,
--
Pierre
@pierrejoye | http://blog.thepimp.net | http://www.libgd.org
--
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
Guilherme,
What's the status regarding the finalised PSR-0 implementation so we
can hand it over to DavidC to finish the C implementation and apply
this to 5.4 branch.
Cheers,
- Paul
On Fri, Nov 4, 2011 at 5:27 PM, guilhermebla...@gmail.com
guilhermebla...@gmail.com wrote:
Hi Tyra3l,
benefit
but by the community/library benefit.
This appears to be the general consensus of PSR-0 and my opinion on the matter.
Regards,
Paul Dragoonis.
On Thu, Nov 3, 2011 at 10:56 AM, André Rømcke a...@ez.no wrote:
On Thu, Oct 27, 2011 at 4:30 AM, Laruence larue...@php.net wrote:
2011/10/26
On Sun, Oct 30, 2011 at 1:23 PM, Laruence larue...@php.net wrote:
s /second/third/
Laurence,
What Jordi was saying was that in a production environment is there
any justified reason why you'd want to convert an array into a string,
otherwise it's a good thing that it reports you Array to string
..
}
which is ugly.
thanks
2011/10/31 Paul Dragoonis dragoo...@gmail.com:
On Sun, Oct 30, 2011 at 1:23 PM, Laruence larue...@php.net wrote:
s /second/third/
Laurence,
What Jordi was saying was that in a production environment is there
any justified reason why you'd want to convert an array
normally without the
user defined error handler kicking in.
I'm keen to make a patch for this.
Thanks,
- Paul Dragoonis.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
solution.
Regards,
Paul Dragoonis.
Cheers,
--
Pierre
@pierrejoye | http://blog.thepimp.net | http://www.libgd.org
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Internals - PHP Runtime Development Mailing List
looking for this yesterday while implementing namespaces
into my project to be PSR-0 complaint. I did see metagoto's
implementation however would prefer to see something in /ext/*
Lets push it ! all major php libs would significantly benefit from
this addition from user-land into core.
- Paul
On Mon, Oct 24, 2011 at 3:57 PM, David Coallier dav...@php.net wrote:
On 24 October 2011 16:53, Paul Dragoonis dragoo...@gmail.com wrote:
On Mon, Oct 24, 2011 at 3:47 PM, guilhermebla...@gmail.com
guilhermebla...@gmail.com wrote:
Hi internals,
It's been a while since Stas accepted
/~pierre/vcqa/apcigninary_perf.png
Comments please.
Regards,
Paul Dragoonis.
On Thu, Aug 18, 2011 at 12:38 PM, Roger Llopart Pla lumben...@gmail.comwrote:
I agree with bundling it in the core aswell, but having it as default, as
stated, would be a huge BC break.
2011/8/18 Arpad Ray array...@gmail.com
Hi,
On Thu, Aug 18, 2011 at 12:12 PM, Paul Dragoonis dragoo
with a decent amount of contributions (patches submitted) get
attribution by getting a SVN account.
Here are some open issues:
https://bugs.php.net/search.php?boolean=0limit=30order_by=iddirection=DESCcmd=displaystatus=Openbug_age=0bug_updated=0bug_type=Allphpver=5.4
Regards,
Paul Dragoonis
On Wed, Aug 10, 2011 at 8:05 PM, Sebastian Krebs
sebastian.krebs.ber...@googlemail.com wrote:
Hi,
From time to time I'm looking over the existing RFCs and I'm wondering what
happens to them. For example Property get/set syntax [1]. As far as I can
see its already accepted for PHP6 [2], but
On Mon, Aug 8, 2011 at 12:06 PM, Alexey Shein con...@gmail.com wrote:
I think it's just a bad habit inherited from Javascript, where you can
do like this:
var a = function(a, b) { };
alert(a.length); // shows 2
I don't think that PHP needs it, explicit method is way better.
I am agreeing
is not a problem, its more so
waiting on things to transfer, commit..etc
Very big -1 for me on this one. Please don't let a plethora of PHP
devs release code with this syntax.
Regards,
Paul Dragoonis.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http
On Thu, Jul 21, 2011 at 11:31 AM, Gwynne Raskind
gwy...@darkrainfall.org wrote:
+1 to E_CORE.
No objections against it, so +1 E_CORE
-- Gwynne
On Thu, Jul 21, 2011 at 06:28, Pierrick Charron pierr...@webstart.fr wrote:
I'm also ok with E_CORE.
Pierrick
On 21 July 2011 05:19, Pierre
/mysql.
Regards,
Paul Dragoonis.
--
Email: christopher.jo...@oracle.com
Tel: +1 650 506 8630
Blog: http://blogs.oracle.com/opal/
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Internals - PHP Runtime Development
On Wed, Jun 29, 2011 at 3:36 PM, Pascal COURTOIS
pascal.court...@nouvo.com wrote:
Le 16/06/2011 08:10, Stas Malyshev a écrit :
Hi!
what I did every single time. Among all my bug reports I had one
answer from decoder-...@own-hero.net (thanks to him) who reduced
the test case for a memory leak
by sean is { ... } just like JS,
however to be consistent with array() I wouldn't mind seeing $o =
object( ) just like $a = array( ... )
Overall, I'm with sean, but wanted to give my opinion on what we
already have and to push the idea of object(...)
Thanks,
Paul Dragoonis.
On Wed, Jun 29
.
Regards,
Paul Dragoonis.
Thanks,
-ralph
On 6/29/11 2:42 PM, David Zülke wrote:
On 29.06.2011, at 21:39, Ralph Schindler wrote:
interface A {}
class B implements A {}
class C extends B {}
var_dump(is_subclass_of('B', 'A')); // true
Typo there; that should be 'C', not 'B'.
David
On Wed, Jun 29, 2011 at 9:22 PM, David Zülke
david.zue...@bitextender.com wrote:
On 29.06.2011, at 22:20, Paul Dragoonis wrote:
On Wed, Jun 29, 2011 at 8:49 PM, Ralph Schindler ra...@smashlabs.com wrote:
Correct.
I was hasty in that example, the first was copied tested (and is reflected
On Thu, Jun 23, 2011 at 4:09 PM, Ferenc Kovacs tyr...@gmail.com wrote:
On Thu, Jun 23, 2011 at 5:03 PM, Stefan Neufeind neufe...@php.net wrote:
Hi,
I've lately discussed with a colleague which scopes of variables exist
for PHP or would probably make sense. In general I think the general
On Thu, Jun 23, 2011 at 7:16 PM, Jordi Boggiano j.boggi...@seld.be wrote:
Thanks for the great work. More should be done on the front of helping
newcomers solve trivial issues imo.
On 23.06.2011 20:08, Felipe Pena wrote:
$ sapi/cli/php -r 'class '
Current:
Parse error: syntax error,
On Sun, Jun 19, 2011 at 3:56 AM, Daniel Convissor
dani...@analysisandsolutions.com wrote:
Hi:
I wasn't keen on earlier proposals for the [] array syntax. Sean, your
case is laid out in a clear manner and addresses my concerns. I like
this RFC.
* Strictness of unquoted keys.
Keys
,
Paul Dragoonis.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, Jun 17, 2011 at 11:18 PM, Kalle Sommer Nielsen ka...@php.net wrote:
Hi Paul
2011/6/18 Paul Dragoonis dragoo...@php.net:
Hi there,
I'm requesting my function be put into the 5.4 branch.
I added a function back in the 5.3 phase to obtain missing
functionality of HEAD.c (and /ext
101 - 165 of 165 matches
Mail list logo