[PHP-DEV] new feature -> with()

2007-10-10 Thread Sebastian
ss->do(); --- could be made easier and more readable: --- $class=new class; with($class) { do_something(); do_more(); do(); } --- greetings Sebastian -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://ww

[PHP-DEV] Re: new feature -> with()

2007-10-12 Thread Sebastian
h Schindler" <[EMAIL PROTECTED]> To: "Sebastian" <[EMAIL PROTECTED]> Cc: Sent: Wednesday, October 10, 2007 6:08 PM Subject: Re: [PHP-DEV] new feature -> with() > >> --- >> $class=new class; >> >> with($class) >&g

[PHP-DEV] ifsetor like expression in php6

2008-01-26 Thread Sebastian
it would be better to remove the Boolean check feature and make it a simple ifsetor() without the E_NOTICE again. For those of you who have not heard of it heres an example: Greetings Sebastian -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net

Re: [PHP-DEV] final keyword

2008-02-12 Thread Sebastian
Plus as it is a constant it's value cannot be changed in the context of the object. However you could implement a method for this, e.g. get_status(); which then returns an array. But the final keyword would be more comfortable.... "Sebastian Schneider" <[EMAIL PROT

Re: [PHP-DEV] PHP 6.0 Wishlist

2005-08-15 Thread sebastian
8... just something to think about. Regarding Rasmus' first post, I am: +1 removal of register globals +1 removal of magic_quotes +1 removal of really old deprecated functions and have nutral feelings about the rest. I'm happy with whichever provides the most simplicity and best perfo

[PHP-DEV] Re: foreach with null

2005-10-26 Thread Sebastian
sson from Perl on this one. Here is how we turn on/off warnings, lexically: use warnings; - sebastian -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] what happened to that new isset() like language

2005-10-28 Thread Sebastian
Wow, it'll be just like perl! this is so great. On 10/28/05, James Crumpton <[EMAIL PROTECTED]> wrote: > Andi Gutmans wrote: > > I don't think it's a matter of giving the engine a try. I think we first > need > > to make a decision what the best way to go is and then we can discuss > > impleme

Re: [PHP-DEV] 1.5Gb PHP process, lots of swap

2005-10-28 Thread Sebastian
Lexical variables would be nice. On 10/28/05, Andi Gutmans <[EMAIL PROTECTED]> wrote: > Hi Cristiano, > > Alex sent a patch to the list a while ago which forces the memory > allocator to return memory to the system. However, in your case, I > think you might be just having PHP variables "leaking".

Re: [PHP-DEV] 1.5Gb PHP process, lots of swap

2005-10-28 Thread Sebastian
Gutmans <[EMAIL PROTECTED]> wrote: > What do you mean? > > At 06:50 PM 10/28/2005, Sebastian wrote: > >Lexical variables would be nice. > > > >On 10/28/05, Andi Gutmans <[EMAIL PROTECTED]> wrote: > > > Hi Cristiano, > > > > > > Ale

Re: [PHP-DEV] what happened to that new isset() like language

2005-10-29 Thread Sebastian
I still think // and //= would be the most reasonable. They involve the least amount of syntax and // looks similar to || On 10/29/05, Greg Beaver <[EMAIL PROTECTED]> wrote: > Sara Golemon wrote: > >>> Evaluating an idea based on it's syntactic similarities to other > >>> languages is complete and

Re: [PHP-DEV] what happened to that new isset() like language

2005-10-29 Thread Sebastian
whoops, forgot about comments. On 10/29/05, David Zülke <[EMAIL PROTECTED]> wrote: > You are joking, aren't you? > > - David > > > > -Original Message- > > From: Sebastian [mailto:[EMAIL PROTECTED] > > Sent: Sunday, October 30, 2005 12

Re: [PHP-DEV] what happened to that new isset() like language

2005-10-29 Thread Sebastian
Given that // is not acceptable, as others sarcastically reminded me, and that this introduces new sytax, I think it might be best just to add more functions. I don't think something like > $d = first-existing: $a, $b, $c; is any better than first_existing($a, $b, $c), and the former happens at t

Re: [PHP-DEV] what happened to that new isset() like language

2005-10-29 Thread Sebastian
But what about the use of ? as an infix operator? that wouldn't work out so well because of the ternary ?: On 10/29/05, Arpad Ray <[EMAIL PROTECTED]> wrote: > For the assign-if-not-set operator, I like the idea of: > > $foo ?= 'bar'; > > ? implies a condition, and the = immediately following will

Re: [PHP-DEV] what happened to that new isset() like language

2005-10-31 Thread Sebastian
What about a similar construct for checking truth? eg, $foo = first_true($bar, $baz, $bang); returns the value of the first variable that passes the if(isset($var) && !empty($var)) test. On 10/31/05, Ford, Mike <[EMAIL PROTECTED]> wrote: > On 29 October 2005 22:56, Greg Beaver wrote: > > > For

Re: [PHP-DEV] namespace separator poll, update

2005-11-28 Thread Sebastian
It's used for shell execution stuff. Perl did something similar and quickly regretted it On 11/28/05, Marian Kostadinov <[EMAIL PROTECTED]> wrote: > Is ` (back quote) suitable for namespace separator? I cannot remember > just now if it was used somewhere. > > 2005/11/28, Ron Korving <[EMAIL PROTE

Re: [PHP-DEV] namespace separator poll, update

2005-11-28 Thread Sebastian
ew On 11/28/05, Bart de Boer <[EMAIL PROTECTED]> wrote: > I'm sorry if I say stupid stuff. My previous post actually was the first > post I've ever made to a newsgroup! Please bare with me while I adjust > to the etiquettes. :) > > Anyway. Somebody has probably already suggested this. But how abou

Re: [PHP-DEV] Change to timeout use

2005-12-21 Thread Sebastian
> The PHP soap implementation is very fast by the way ... my benchmarks > indicated 3-4ms request times on the LAN (without doing anything useful > inside the request). This compares to over 30ms for the > mod_perl/Soap::Lite implementation (and I haven't tested Java or .Net) Can you provide code

[PHP-DEV] string operators for assigning class constants

2008-02-20 Thread Sebastian
hi, why isn't it possible to assign class constants like this: class test { const DIR='dirname'.DIRECTORY_SEPARATOR.'anotherdirname'.DIRECTORY_SEPARATOR; } is there some performance issue? anyone ever tried this or was there a discussion about it? i would find this very useful.

[PHP-DEV] register globals -> PHP6 still replaces . in variables from outside

2008-02-24 Thread Sebastian
hi, PHP6 still replaces "." with an underscore in variables from outside. this is an old behavior forced by register globals so i would say its a bug since "." is valid in array keys. for sample: call a script like http://www.example.com/?my.var=1 now $_GET will look like this: Array ( [my_v

[PHP-DEV] __toString() and exceptions

2008-05-28 Thread Sebastian
Hi, i just found it's really annoying that you can't throw exception in the context of __toString(). This makes it nealy impossible to work with __toString() because you'll have to watch not to throw exceptions (which is even more annoying..). Could this be adressed? Greetings -- PHP Inte

Re: [PHP-DEV] __toString() and exceptions

2008-05-28 Thread Sebastian
new features its "just" an rewrite of version 1. alas, an exception is a direct break of code execution, so i actually cant understand the limitations. it should at least go to next years "summer of code" of google. would be interesting. thanks. Sebastian ""Guilhe

Re: [PHP-DEV] RFC: Return Types Update

2014-10-16 Thread Sebastian Bergmann
On 10/16/2014 09:44 AM, Dmitry Stogov wrote: The RFC is very consistent. It proposes only a part of the desired type-hinting features, but this part is not questionable for me. +1 I second that emotion; +1. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http:/

Re: [PHP-DEV] PHPDBG nonsense (Was: Re: [PHP-CVS] com php-src: Made phpdbg compatible with new engine: ...)

2014-10-25 Thread Sebastian Bergmann
Am 25.10.2014 um 13:00 schrieb Weinand Bob: > It’s known that all the development currently is going on in > krakjoe/phpdbg github repo. Why is that, exactly? I find it weird that something that is shipped with official releases of PHP is not developed alongside the rest of PHP. -- PHP Inter

Re: [PHP-DEV] PHPDBG nonsense (Was: Re: [PHP-CVS] com php-src: Made phpdbg compatible with new engine: ...)

2014-10-26 Thread Sebastian Bergmann
Am 25.10.2014 um 20:20 schrieb Stas Malyshev: > somewhat relaxed rules there, but even then introducing new debugging > protocol into PHP core seems to be something that warrants some > notification. That would have been my next question. I think it does not only warrant notification but adheren

[PHP-DEV] Currently supported versions of PHP

2014-10-27 Thread Sebastian Bergmann
Hi! Do we have a page that lists the versions of PHP that are currently supported and when their support expires? If not, why not? What I am looking for is basically a page that lists the information shown in the examples used in https://wiki.php.net/rfc/releaseprocess Thanks! Sebastian

Re: [PHP-DEV] Currently supported versions of PHP

2014-10-27 Thread Sebastian Bergmann
On 10/27/2014 10:45 AM, Peter Cowburn wrote: > The closest we have, at the moment, is probably http://php.net/eol.php > which details the versions which are no longer supported. We need the inverse of that :) > Good question. Should we start http://php.net/supported-versions.php then? -- PHP

Re: [PHP-DEV] Currently supported versions of PHP

2014-10-27 Thread Sebastian Bergmann
On 10/27/2014 10:48 AM, Andrea Faulds wrote: > We should copy it. +1 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Currently supported versions of PHP

2014-10-27 Thread Sebastian Bergmann
On 10/28/2014 03:35 AM, Trevor Suarez wrote: > Great job on this Adam. You whipped this up pretty quickly and it looks > good! I second that emotion: great work, Adam! Thank you for your work! -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsu

Re: [PHP-DEV] [RFC] Abstract final classes

2014-11-27 Thread Sebastian Krebs
> The example is a little bit misleading: Instead of a new concept you can use functions, right? Regards, Sebastian > My motivation is to further expand class support to add modifiers (PPP - > public, protected, private). I added this change to initially segregate > grammar rules. I

Re: [PHP-DEV] New function: spl_object_id() or spl_object_handle()

2014-11-28 Thread Sebastian Krebs
2014-11-28 2:13 GMT+01:00 Bostjan Skufca : > Hello everyone, > > this is a proposal to add new function to PHP core: spl_object_id() > > > The story: > > Recently I was debugging some larger libraries and sorely missed a function > that would return an object ID. A function called spl_obj

[PHP-DEV] bison 3.0

2014-12-10 Thread Sebastian Bergmann
good situation to be incompatible with current versions of essential tools such as bison. Best, Sebastian -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] ./configure on PHP-5.6 modifies main/php_version.h

2014-12-11 Thread Sebastian Bergmann
$ git status On branch PHP-5.6 Your branch is up-to-date with 'origin/PHP-5.6'. nothing to commit, working directory clean $ ./configure --disable-all . . . Thank you for using PHP. config.status: error: cannot find input file: `php7.spec.in' $ git status On branch PHP-5.6 Your bran

Re: [PHP-DEV] bison 3.0

2014-12-12 Thread Sebastian Bergmann
Am 12.12.2014 um 09:47 schrieb Julien Pauli: > In the worst scenario, there is also: downgrade your Bison. I have done that for now, of course. What worries me is the reliance on outdated and unsupported tools. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http

Re: [PHP-DEV] [PATCH] Consistent type names in error messages

2014-12-15 Thread Sebastian Bergmann
Am 14.12.2014 um 19:35 schrieb Andrea Faulds: > Thoughts? +1 for consistency :) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [RFC] PHP 5.7

2014-12-17 Thread Sebastian Bergmann
Am 17.12.2014 um 15:54 schrieb Zeev Suraski: > I’m opposed to having a 5.7 release that has new features on > top of 5.6.x. Same here; 5.7 should only add deprecations etc. and must not add new features. > I also think we should minimize any new work on 5.6.x as much as > possible, and focus al

Re: [PHP-DEV] Bugfest

2014-12-27 Thread Sebastian Bergmann
Am 27.12.2014 um 16:01 schrieb Kalle Sommer Nielsen: > bugs going as far back as to PHP4. Bug reports for PHP version that are not supported anymore [1] should IMHO be bulk-closed. The message should ask to reopen if the bug is reproducible with a supported version of PHP. IMHO :) -- [1] htt

Re: [PHP-DEV] [RFC] Scalar Type Hints

2015-01-01 Thread Sebastian Bergmann
Am 31.12.2014 um 21:27 schrieb Andrea Faulds: > Parameter type hints for PHP’s scalar types Please use the term "type declaration for arguments" (or "type declaration for parameters") instead of "type hints". If it's used then it's not a hint. -- PHP Internals - PHP Runtime Development Maili

Re: [PHP-DEV] Re: [VOTE] Abstract Syntax Tree

2015-01-10 Thread Sebastian Bergmann
Am 25.08.2014 um 19:39 schrieb Nikita Popov: > I don't know if I will be implementing that ext myself. In any case, before > that can happen I will have to create another RFC for converting parse > errors into exceptions and making sure we don't leak memory on failed parse > - I think thats a prere

Re: [PHP-DEV] Re: [VOTE] Abstract Syntax Tree

2015-01-11 Thread Sebastian Bergmann
Am 11.01.2015 um 09:03 schrieb Ferenc Kovacs: > There is https://github.com/nikic/php-ast Aha! Thanks for the pointer, Ferenc. Can we get this bundled with PHP 7 (and enabled by default)? -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.ph

Re: [PHP-DEV] Class constructor behaviour

2015-01-18 Thread Sebastian Bergmann
Am 17.01.2015 um 15:02 schrieb Dan Ackroyd: > class constructors PHP does not have class constructors (static method automatically invoked when a class is initialized). It only supports object constructors (method automatically invoked when an object is created). > Several classes in PHP

Re: [PHP-DEV] PEAR and make install on master

2015-01-18 Thread Sebastian Bergmann
Am 18.01.2015 um 09:40 schrieb Matteo Beccati: > what's the plan, if any? Remove it? -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: [PHP-CVS] Broken apps

2015-01-19 Thread Sebastian Bergmann
Am 19.01.2015 um 10:49 schrieb Dmitry Stogov: > Despite of PEAR, I also found few other apps, from my usual test list, > broken - Typo3, Xoops, SugarCRM. > Magento is broken long time ago by "unified variable syntax". The vendors of these applications have time to become compatible with PHP 7 un

[PHP-DEV] Re: [PHP-CVS] Broken apps

2015-01-19 Thread Sebastian Bergmann
Am 19.01.2015 um 10:49 schrieb Dmitry Stogov: > Despite of PEAR, I also found few other apps, from my usual test list, > broken - Typo3, Xoops, SugarCRM. > Magento is broken long time ago by "unified variable syntax". The vendors of these applications have time to become compatible with PHP 7 un

Re: [PHP-DEV] PEAR and make install on master

2015-01-19 Thread Sebastian Bergmann
Am 19.01.2015 um 07:58 schrieb Stanislav Malyshev: > Can't we just fix it? As I understand, it's just making this: > > function initializeConfig(&$config) > > into this: > > static function initializeConfig(&$config) > > In PEAR/Installer/Role.php but I'm not sure where to commit the pa

Re: [PHP-DEV] [RFC] Remove PHP 4 Constructors

2015-01-19 Thread Sebastian Bergmann
Am 19.01.2015 um 17:42 schrieb Tony Marston: > has already been pointed out that there are a large number of PEAR > libraries which were written with PHP 4 constructors and have never been > updated. So? If that code is still valuable to people they will update it. Or rather would have updated i

[PHP-DEV] Re: [PHP-CVS] com php-src: Slightly modify and merge PR#105 from @MegaManSec: sapi/fpm/fpm/fpm_conf.c sapi/fpm/fpm/fpm_sockets.c

2015-01-21 Thread Sebastian Bergmann
Am 21.01.2015 um 20:39 schrieb Rasmus Lerdorf: > Log: > Slightly modify and merge PR#105 from @MegaManSec > > Bugs: > https://bugs.php.net/105 I think the commit email script needs to be updated to handle PR#NNN "links". -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe,

Re: [PHP-DEV] PHP7 Homework for everyone reading this list

2015-01-22 Thread Sebastian Bergmann
Am 22.01.2015 um 18:05 schrieb Rasmus Lerdorf: > It would be really useful if we got more eyes on this. Install php7, > then install any random app and see how it goes. It's even easier to check whether a component or framework has issues with PHP 7: simply run the respective test suite with PHP

[PHP-DEV] Warnings in zend_alloc.h

2015-01-24 Thread Sebastian Bergmann
Nut sure whether this is an issue or not but I see it a lot while compiling master: Zend/zend_alloc.h:57:236: warning: unknown attribute 'alloc_size' ignored [-Wunknown-attributes] __attribute__ ((visibility("default"))) void* _emalloc(size_t size, const char *__zend_filename, const

Re: [PHP-DEV] Warnings in zend_alloc.h

2015-01-25 Thread Sebastian Bergmann
Am 25.01.2015 um 17:17 schrieb Andi Gutmans: > Can you provide more info re: operating system and version? > Compiler version? $ cat /etc/issue Fedora release 21 (Twenty One) $ clang --version clang version 3.5.0 (tags/RELEASE_350/final) Target: x86_64-redhat-linux-gnu Thread model: posix

[PHP-DEV] Re: [PHP-CVS] com php-src: Revert "Disable PEAR by default": configure.in

2015-01-26 Thread Sebastian Bergmann
Am 26.01.2015 um 11:14 schrieb Ferenc Kovacs: > Commit:cfd7f5c8a3745097e0c3c3e627f6df10f2a2acdf > Author:Ferenc Kovacs Mon, 26 Jan 2015 11:09:53 > +0100 > Parents: 8aa146b810108bde3353d9d2f8cf05a9dd012f6d > Branches: master > > Link: > http://git.php.net/?p=php-src.git;

Re: [PHP-DEV] Re: [PHP-CVS] com php-src: Revert "Disable PEAR by default": configure.in

2015-01-26 Thread Sebastian Bergmann
Am 26.01.2015 um 11:31 schrieb Tony Marston: >> PHP 7 would be a good time to cut the ties between the PHP core >> and PEAR. Why not get rid of it completely? > > Because a lot of sites still use it, and you haven't provided an > alternative which allows modules be to added/updated/deleted through

Re: [PHP-DEV] Re: [PHP-CVS] com php-src: Revert "Disable PEAR by default": configure.in

2015-01-26 Thread Sebastian Bergmann
Am 26.01.2015 um 13:51 schrieb Ferenc Kovacs: > and bundling our own installer is only temporary, as I mentioned in the PR > probably there will be more BC breaks until php7 is frozen, and it would > be clunky if we have to always wait for the official PEAR release so that > the pear installer of t

Re: [PHP-DEV] Re: [PHP-CVS] com php-src: Revert "Disable PEAR by default": configure.in

2015-01-26 Thread Sebastian Bergmann
Am 26.01.2015 um 13:56 schrieb Lester Caine: > how would YOU propose to replace it? I am not talking about replacing but removing. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: [PHP-CVS] com php-src: Revert "Disable PEAR by default": configure.in

2015-01-26 Thread Sebastian Bergmann
Am 26.01.2015 um 18:03 schrieb Ferenc Kovacs: > imo we can't ship php without a tool to install additional pecl > extensions. I disagree and would argue that most people do not want to build extensions themselves and instead prefer binary packages provided by their OS distribution. But even i

Re: [PHP-DEV] [RFC] Remove the date.timezone warning

2015-01-26 Thread Sebastian Bergmann
Am 27.01.2015 um 07:40 schrieb Matteo Beccati: > The warning is certainly annoying, but making it default to UTC or a wrong > timezone because the right one can't be guessed is a major WTF. Couldn't agree more; -1 for removing the warning. -- PHP Internals - PHP Runtime Development Mailing List

Re: [PHP-DEV] Re: [PHP-CVS] com php-src: Revert "Disable PEAR by default": configure.in

2015-01-27 Thread Sebastian Bergmann
Am 27.01.2015 um 10:00 schrieb Lester Caine: > composer has not even managed to get added to some distributions yet This is not about PEAR Installer vs. Composer or something else. This is about the PHP core getting untangled from third-party software that impedes the development of PHP itself.

Re: [PHP-DEV] Re: [PHP-CVS] com php-src: Revert "Disable PEAR by default": configure.in

2015-01-27 Thread Sebastian Bergmann
Am 27.01.2015 um 10:52 schrieb Lester Caine: > On 27/01/15 09:42, Sebastian Bergmann wrote: >> PEAR has served its purpose, it provided value for the PHP >> ecosystem for a time, but now it should be retired. > > So what happens to http://pear.php.net ? That is a good q

Re: [PHP-DEV] Re: [PHP-CVS] com php-src: Revert "Disable PEAR by default": configure.in

2015-01-27 Thread Sebastian Bergmann
Am 27.01.2015 um 21:13 schrieb Pierre Joye: > However there is one thing we do need to care, and this is 3rd party > extensions. This is all I care about and why I initiated pickle. It just that I am not convinced that the problem you are trying to solve with a tool such as pickle exists. From m

Re: [PHP-DEV] [RFC] Scalar Type Hints v0.2

2015-02-03 Thread Sebastian Bergmann
Am 04.02.2015 um 06:44 schrieb Dmitry Stogov: > What do you think about using only lowercase type names for scalar type > hints? In this case we won't have to introduce any limitations. This would be inconsistent with the rest of PHP being case-insensitive and only lead to confusion. -- PHP I

Re: [PHP-DEV] What do we need strict scalar type hints for?

2015-02-03 Thread Sebastian Bergmann
Am 04.02.2015 um 08:25 schrieb Dmitry Stogov: > The idea of that RFC was an ability to have zero-cost assert(). But an assert() is still in the body of a function or method and not part of its signature. That is what I want scalar type declarations for. -- PHP Internals - PHP Runtime Develop

Re: [PHP-DEV] What do we need strict scalar type hints for?

2015-02-04 Thread Sebastian Bergmann
Am 04.02.2015 um 10:25 schrieb Dmitry Stogov: > Do you like the proposal with declare() switch? No, I do not like that. We are talking about adding support for scalars (string, integer, ...) to the list of optional type declarations already supported (array, callable, interface name, class na

Re: [PHP-DEV] What do we need strict scalar type hints for?

2015-02-04 Thread Sebastian Bergmann
On 02/04/2015 04:32 PM, Dan Ackroyd wrote: > btw For your exact example `sin((float)$x).` this is actually a case > where another scalar type of 'number' which is satisfiable by either a > float or an int would be useful, but that's definitely a step too far > before we have any scalar type hints.

Re: [PHP-DEV] [VOTE] Scalar Type Hints

2015-02-06 Thread Sebastian Bergmann
On 02/06/2015 10:22 PM, Nikita Popov wrote: > After much initial reluctance, I've voted in favor of this RFC. After reading your email, Nikita, I deleted my vote (it was no before). I will review the RFC again, with your arguments (and others) in mind and maybe I'll come to a different conclusi

Re: [PHP-DEV] [VOTE] Scalar Type Hints

2015-02-09 Thread Sebastian Bergmann
Am 07.02.2015 um 02:08 schrieb Sebastian Bergmann: > After reading your email, Nikita, I deleted my vote (it was no before). > I will review the RFC again, with your arguments (and others) in mind > and maybe I'll come to a different conclusion. I have voted (no) again. I still

Re: [PHP-DEV] [VOTE] Scalar Type Hints

2015-02-09 Thread Sebastian Bergmann
Am 09.02.2015 um 15:50 schrieb Pierre Joye: > Not strict? You loose me here. I want support for scalar types in signatures. I want these type declarations to be strictly enforced. This is not wanted and not proposed by the RFC. Hence my vote. -- PHP Internals - PHP Runtime Development Mailing

Re: [PHP-DEV] Compile problems - Was Switch jumptable optimization

2015-02-18 Thread Sebastian Bergmann
Am 17.02.2015 um 10:51 schrieb Lester Caine: > It seems not even running distclean clears down everything that needs > removing for some of the changes currently going through. ./vcsclean I stopped using distclean / vcsclean a while ago. "git clean -xdf" does the trick for me. -- PHP Internals

[PHP-DEV] BC break between PHP 5.6.5 and PHP 5.6.6

2015-02-27 Thread Sebastian Bergmann
While working on PHPUnit today I noticed one test of its own test suite failing on PHP 5.6.6 that passes on PHP 5.6.5. The details of this can be found at https://github.com/sebastianbergmann/phpunit/issues/1630 Florian Margaine reduced the problem to the following minimal, self-contained

Re: [PHP-DEV] BC break between PHP 5.6.5 and PHP 5.6.6

2015-02-27 Thread Sebastian Bergmann
Am 27.02.2015 um 09:14 schrieb Remi Collet: > Hmmm http://3v4l.org/QST64 No clue why PHP 5.6.5 seems to have worked for that reproducing script here earlier. Tried it again and, of course, it also fails with "my" PHP 5.6.5. Looks the like the reproducing script was not the right one. :-/ --

Re: [PHP-DEV] BC break between PHP 5.6.5 and PHP 5.6.6

2015-02-27 Thread Sebastian Bergmann
Am 27.02.2015 um 09:30 schrieb Xinchen Hui: > maybe related to your own build? The test in the PHPUnit test suite fails with PHP 5.6.6 (cli) (built: Feb 19 2015 09:44:29) Copyright (c) 1997-2015 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies with Xdeb

Re: [PHP-DEV] BC break between PHP 5.6.5 and PHP 5.6.6

2015-02-27 Thread Sebastian Bergmann
Am 27.02.2015 um 09:53 schrieb Xinchen Hui: > I noticed different version of xdebug, could you try without it? Thank you for bringing Xdebug to my attention. You are right, it appears to be related to Xdebug. Without Xdebug $ php -v PHP 5.6.6 (cli) (built: Feb 19 2015 09:44:29) Copyr

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-02-27 Thread Sebastian Bergmann
Am 23.02.2015 um 19:15 schrieb Nikita Popov: > Voting on the engine exceptions RFC, which proposes to convert existing > fatal and recoverable fatal errors into exceptions, has opened: > > https://wiki.php.net/rfc/engine_exceptions_for_php7#vote > > The primary vote requires a 2/3 majority, a

Re: [PHP-DEV] Re: Zend JIT Open Sourced

2015-02-27 Thread Sebastian Bergmann
Am 27.02.2015 um 16:12 schrieb Anthony Ferrara: > Thank you for sharing your code. I look forward to playing with it. > > Perhaps after 7 stabilizes (and ships) you could write up your > thoughts around it? Why decisions were made and the findings that you > have? What Joe and Anthony said :-) T

Re: [PHP-DEV] Follow-up to STH user experience, this time with actual testing

2015-02-27 Thread Sebastian Bergmann
Am 27.02.2015 um 01:29 schrieb Matthew Weier O'Phinney: > - PHPUnit passes a boolean false to `debug_backtrace()`... which is documented > as expecting an integer! (There are actually several constant values it > accepts, all of which are integer values.) In this case, PHPUnit is relying > on

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-02-27 Thread Sebastian Bergmann
Am 28.02.2015 um 01:57 schrieb Larry Garfield: > The RFC is currently in voting, so editing it directly is a no-no. A new, > short RFC, please. (Exception implements Throwable, Error implements > Throwable sounds good to me. Should we ask about SomeUserspaceClass > implements Throwable, or will

Re: [PHP-DEV][RFC][VOTING] Context Sensitive Lexer

2015-03-04 Thread Sebastian Bergmann
Am 04.03.2015 um 09:52 schrieb Nikita Popov: > So, tl;dr: I think the patch is too risky. Even if we can make sure that > we've covered all the current edge-cases and don't regress anything, I'm > afraid that this will cause complications with future changes. This ends up > replicating too many par

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-03-07 Thread Sebastian Bergmann
Am 23.02.2015 um 19:15 schrieb Nikita Popov: > Voting is open until 2015-03-08. Voting ends today and it looks like the RFC will be accepted. How should we proceed with regards to the comments I made in Message-ID: <54f07fc7.8050...@php.net> Date: Fri, 27 Feb 2015 15:31:35 +0100 Guilher

Re: [PHP-DEV][RFC][VOTING] Context Sensitive Lexer

2015-03-09 Thread Sebastian Bergmann
Am 09.03.2015 um 09:44 schrieb Matteo Beccati: > I like the approach. I'm no lexer expert but the new PR seems much nicer. > Moreover, I like the feature itself but previously voted no on the > implementation. I've therefore switched my vote to a "yes". Dito. -- PHP Internals - PHP Runtime Deve

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-03-09 Thread Sebastian Bergmann
Am 09.03.2015 um 12:40 schrieb Dan Ackroyd: > So even though I hope we can clean up the exception hierarchy, merging > the engine exceptions is the right choice imo. Sounds reasonable to me. I'm wondering, though, whether we really need an additional RFC for the change I suggested as nobody spok

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-03-15 Thread Sebastian Bergmann
Am 27.02.2015 um 15:47 schrieb Jordi Boggiano: > quickly draft another RFC to amend that part So who will draft the RFC for * Introduce a Throwable interface * Let Exception implement the Throwable interface * Introduce an Error class that implements the Throwable interface * Use Err

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-03-15 Thread Sebastian Bergmann
Am 15.03.2015 um 08:07 schrieb Sebastian Bergmann: > So who will draft the RFC for > >* Introduce a Throwable interface >* Let Exception implement the Throwable interface >* Introduce an Error class that implements the Throwable interface >* Use Error class

[PHP-DEV] Minimum version of GCC required to build PHP

2015-03-15 Thread Sebastian Bergmann
What is the minimum version of GCC required to build PHP? I am asking because using GCC 2.95.3 and GCC 3.4.0 I get errors related to the usage of intptr_t (see http://pastebin.com/9Gn0AAXA). -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsu

Re: [PHP-DEV] Minimum version of GCC required to build PHP

2015-03-15 Thread Sebastian Bergmann
Am 15.03.2015 um 15:34 schrieb Sebastian Bergmann: > I am asking because using GCC 2.95.3 and GCC 3.4.0 I get errors related > to the usage of intptr_t (see http://pastebin.com/9Gn0AAXA). Over in Room 11, Michael just pointed out that this could be related to php_stdint.h. -- PHP Int

Re: [PHP-DEV] Minimum version of GCC required to build PHP

2015-03-15 Thread Sebastian Bergmann
Am 15.03.2015 um 16:36 schrieb Sebastian Bergmann: > Over in Room 11, Michael just pointed out that this could be related > to php_stdint.h. Okay, this does not seem to be related to the GCC version but rather to the fact that some int types etc. are not defined on/for my platform. If

Re: [PHP-DEV] Minimum version of GCC required to build PHP

2015-03-16 Thread Sebastian Bergmann
Am 16.03.2015 um 07:41 schrieb Xinchen Hui: > what is the link problems? http://pastebin.com/Tk1kaipQ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DEV] ZF 0.8.0 Unit Tests behaving different on PHP 5.2.1 and PHP 5.2.2-dev

2007-04-17 Thread Sebastian Nohn
On Tue, April 17, 2007 9:55 am, Dmitry Stogov wrote: > The float formatting algorithms were changed because of > licensing issues and new ones are not 100% compatible with > previous ones. Could you please provide more details on that? - Sebastian -- PHP Internals - PHP Runtime De

Re: [PHP-DEV] Re: [fw-general] Re: [PHP-DEV] ZF 0.8.0 Unit Tests behaving different on PHP 5.2.1 and PHP 5.2.2-dev

2007-04-17 Thread Sebastian Nohn
e that raised this discussion shows. - Sebastian -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: [fw-general] Re: [PHP-DEV] ZF 0.8.0 Unit Tests behaving different on PHP 5.2.1 and PHP 5.2.2-dev

2007-04-17 Thread Sebastian Nohn
on exakt the same machine with different PHP versions and I get different results with these different versions, I expect that to be documented. Best regards, Sebastian Nohn -- Sebastian Nohn · Wolfstraße 29 · 53111 Bonn · Germany +49-170-4718105 · http://nohn.net/ · [EMAIL PROTEC

Re: [PHP-DEV] Re: [fw-general] Re: [PHP-DEV] ZF 0.8.0 Unit Tests behaving different on PHP 5.2.1 and PHP 5.2.2-dev

2007-04-17 Thread Sebastian Nohn
Dmitry Stogov wrote: > It is bad practice to use echo $float or var_dump($float) > because they depends on php.ini settings. > You should use printf() of number_format() for deterministic result. PHP 5.2.1: -1689934592 2147483647 PHP 5.2.2: -1689934592 6 - Sebastian -- PHP

Re: [PHP-DEV] ZF 0.8.0 Unit Tests behaving different on PHP 5.2.1 and PHP 5.2.2-dev

2007-04-17 Thread Sebastian Nohn
Antony Dovgal wrote: > On 04/17/2007 10:16 PM, Sebastian Nohn wrote: >> Dmitry Stogov wrote: >> >>> It is bad practice to use echo $float or var_dump($float) >>> because they depends on php.ini settings. >>> You should use printf() of number_format() for d

Re: [PHP-DEV] ZF 0.8.0 Unit Tests behaving different on PHP 5.2.1 and PHP 5.2.2-dev

2007-04-17 Thread Sebastian Nohn
Sebastian Nohn wrote: > $c = $a.""; > $d = (string)$a; Forget that. - Sebastian -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: diff in double-to-string conversion 5.2.1 vs 5.2.2

2007-04-19 Thread Sebastian Nohn
Hi, On Thu, April 19, 2007 11:33 am, Antony Dovgal wrote: > On 04/15/2007 11:05 AM, Sebastian Nohn wrote: >> > $a = 69; >> var_dump($a); >> $b = "A is: ".$a; >> var_dump($b); >> ?> >> >> 5.2.1 output is: >> >>

Re: [PHP-DEV] Tree sort in C

2007-05-09 Thread Sebastian Bergmann
he former) would be usefull, IMHO. -- Sebastian Bergmann http://sebastian-bergmann.de/ GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: cvs: php-src(PHP_5_2) / NEWS /main php_ini.c

2007-05-11 Thread Sebastian Bergmann
k that this commit is responsible for http://bugs.php.net/bug.php?id=41361. -- Sebastian Bergmann http://sebastian-bergmann.de/ GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visi

[PHP-DEV] Segfaults with 5.2.3-dev

2007-05-19 Thread Sebastian Nohn
confirm that segfault? Best regards, Sebastian Nohn -- Sebastian Nohn · Wolfstraße 29 · 53111 Bonn · Germany +49-170-4718105 · http://nohn.net/ · [EMAIL PROTECTED] http://pgpkeys.pca.dfn.de:11371/pks/lookup?op=get&fingerprint=on&search=0xD47D55E0 -- PHP Internals - PHP Runtime Development

Re: [PHP-DEV] PHP 6 Preview

2007-05-19 Thread Sebastian Bergmann
Wez Furlong wrote: > I'm going to say it one last time: there are other maintainers. > I'm temporarily too busy, but we have other maintainers. > Please assign bugs to the other maintainers. Maybe per-extension aliases (such as [EMAIL PROTECTED]) could help here? This way it would be possible to

Re: [PHP-DEV] PHP 6 Preview

2007-05-19 Thread Sebastian Bergmann
Stut wrote: > This thread has nothing to do with me, (except with regards to my > interest in PHP6) but in my experience when a task is assigned to a > group not an individual there is no accountability and no incentive to > either get it done or pass it to someone who can. IMHO it's better to > le

Re: [PHP-DEV] Segfaults with 5.2.3-dev

2007-05-19 Thread Sebastian Nohn
Antony Dovgal wrote: > On 19.05.2007 14:27, Sebastian Nohn wrote: >> Hi, >> >> I currently get segfaults with 5.2.3-dev when running the the Zend >> Framework >> 0.8.0 Unit Tests: >> >> ok 1860 - testHandleAnonymousArgFunction(Zend_Rest_Server

Re: [PHP-DEV] Segfaults with 5.2.3-dev

2007-05-20 Thread Sebastian Nohn
Antony Dovgal wrote: >>> Any chance to get GDB backtrace? > > Aha.. I see.. > Could you please try the patch attached? Works. Best regards, Sebastian Nohn -- Sebastian Nohn · Wolfstraße 29 · 53111 Bonn · Germany +49-170-4718105 · http://nohn.net/ · [EMA

Re: [PHP-DEV] Segfaults with 5.2.3-dev

2007-05-21 Thread Sebastian Nohn
Antony Dovgal wrote: > On 20.05.2007 12:15, Sebastian Nohn wrote: >> Antony Dovgal wrote: >> >>>>> Any chance to get GDB backtrace? >>> >>> Aha.. I see.. >>> Could you please try the patch attached? >> >> Works. > &g

Re: [PHP-DEV] Benchmark Suite

2007-06-05 Thread Sebastian Bergmann
Antony Dovgal wrote: > Hello Sebastian. Hello Antony, > What's the status of this? > Do you have anything working? back in February/March when I first posted about this, I discussed this with Marcus. The conclusion was that we wanted to rewrite run-tests.php based on the Itera

  1   2   3   4   5   6   7   8   9   10   >