[PHP-DEV] Introduction

2017-05-02 Thread Peter
Hello New to PHP internals. Keen on fixing a bug or two where I can. Warm Regards Peter Chaula

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-11 Thread Peter Cowburn
Hi Marcio, On 11 February 2015 at 20:50, Marcio Almada wrote: > Hi internals! > > Since no new discussion topics appeared, the voting on the Group Use > Declarations RFC for PHP7 is now open: > > RFC: https://wiki.php.net/rfc/group_use_declarations#votes > Patch: https://github.com/php/php-src/p

Re: [PHP-DEV] Reviving scalar type hints

2015-02-16 Thread Peter Cowburn
On 16 February 2015 at 16:42, François Laupretre wrote: > Hi, > > > > De : Arvids Godjuks [mailto:arvids.godj...@gmail.com] > > > > The 0.1 RFC version was mentioned a lot as a good compromise by many > > people > > and had major support. > > Maybe someone competent could pick it up, make necessa

[PHP-DEV] New SAPI development

2015-02-23 Thread Peter Hodur
Hello, I would like to ask someone more skilled with PHP internals, where can I found some documentation when I want to start to develop new PHP SAPI. For many years I'm using PHP as FastCGI but standrad FastCGI handler and also new PHPFPM does not suits my needs. So how to start? Where can I fin

Re: [PHP-DEV] Annotations in PHP7

2015-02-25 Thread Peter Holák
One thing to consider when annotations are classes is whether using an annotation should make the annotated class depend on the annotation classes it uses. In other words, would a missing annotation class produce an error? It doesn't in Java (at runtime, see http://stackoverflow.com/a/3567969) and

Re: [PHP-DEV] Voting irregularities

2015-03-15 Thread Peter Petermann
't lead anywhere. And if this is really about the voting practise, why is the numbers on what it would do with your RFC to ignore the oldtimers relevant? regards, Peter Petermann 2015-03-15 15:19 GMT+01:00 Anthony Ferrara : > All, > > I ran some numbers on the current votes of th

Re: [PHP-DEV] [VOTE] Reclassify E_STRICT notices

2015-03-16 Thread Peter Cowburn
On 15 March 2015 at 15:46, Nikita Popov wrote: > Hi internals! > > To ensure we have no shortage of new RFC votes... > > https://wiki.php.net/rfc/reclassify_e_strict#vote > > Voting is open for ten days :) > Nikita, don't forget to start a new thread with the tag [VOTE] in the subject line a

Re: [PHP-DEV] [RFC][DISCUSSION] Add preg_replace_callback_array function

2015-03-16 Thread Peter Cowburn
On 16 March 2015 at 01:40, Wei Dai wrote: > Hi internals, > > The RFC to add a user-land function for an easy-to-use and reliable > preg_replace_callback_array() in PHP is up for discussion: > https://wiki.php.net/rfc/preg_replace_callback_array > > This proposes adding one function: `preg_replac

Re: [PHP-DEV] Voting irregularities

2015-03-16 Thread Peter Cowburn
On 15 March 2015 at 15:23, Levi Morrison wrote: > On Sun, Mar 15, 2015 at 8:29 AM, Michael Wallner wrote: > > > >> On 15 03 2015, at 15:19, Anthony Ferrara wrote: > >> > >> All, > >> > >> I ran some numbers on the current votes of the dual-mode vote right > >> now. There were a number of voters

Re: [PHP-DEV] [RFC][DISCUSSION] Add preg_replace_callback_array function

2015-03-16 Thread Peter Cowburn
On 16 March 2015 at 14:59, Xinchen Hui wrote: > Hey: > > On Mon, Mar 16, 2015 at 5:45 PM, Peter Cowburn > wrote: > > On 16 March 2015 at 01:40, Wei Dai wrote: > > > >> Hi internals, > >> > >> The RFC to add a user-land function for an easy-t

Re: [PHP-DEV] About declare(strict_types = 1)

2015-03-16 Thread Peter Petermann
On March 16, 2015 2:32:39 PM GMT+01:00, Pascal Chevrel wrote: >It's too late, Bob's Basic STH missed the schedule for PHP 7, it was >proposed way too late and the coercive STH RFC has just zero chance to >pass, it's too much of a BC break for everybody. The dual mode STH is >the only chance

Re: [PHP-DEV] [VOTE] Reserve even more type hints

2015-03-17 Thread Peter Cowburn
On 17 March 2015 at 08:02, Sanford Whiteman wrote: > > rather than having a single untyped parameter amongst typed ones > > > Yes, when experimenting with strict types, I'd rather move things in and > out of 'mixed' than remove the notation completely. Like you said, 'mixed' > means, "I've revie

Re: [PHP-DEV] About declare(strict_types = 1)

2015-03-17 Thread Peter Petermann
On March 16, 2015 11:10:41 PM GMT+01:00, Pierre Joye wrote: >On Mar 17, 2015 7:05 AM, "Peter Petermann" >wrote: >> >> >> >> On March 16, 2015 2:32:39 PM GMT+01:00, Pascal Chevrel < >pascal.chev...@free.fr> wrote: >> >> >It&#

[PHP-DEV] To RFC or Not To RFC [was Re: [PHP-DEV] 回复: [RFC][DISCUSSION] Add preg_replace_callback_array function]

2015-03-21 Thread Peter Cowburn
On 21 March 2015 at 08:14, Xinchen Hui wrote: > Hey: > > On Fri, Mar 20, 2015 at 9:14 PM, Xinchen Hui wrote: > > Hey: > > > > On Fri, Mar 20, 2015 at 7:53 PM, Alain Williams > wrote: > >> On Fri, Mar 20, 2015 at 10:46:58PM +1100, Pierre Joye wrote: > >>> On Fri, Mar 20, 2015 at 7:03 PM, Wei Dai

[PHP-DEV] DateInterval bug

2015-04-12 Thread Peter Lind
h applies both to DateTime::add and DateTime::sub)? I've tried searching the internals list but couldn't see any discussion of it. It seems like a bug that never got fixed to the point where there are tests to make sure things are still calculated wrong. Regards Peter -- WWW: plphp.dk / plind.dk CV: careers.stackoverflow.com/peterlind LinkedIn: plind Twitter: kafe15

Re: [PHP-DEV] DateInterval bug

2015-04-13 Thread Peter Lind
On 13 April 2015 at 22:20, Derick Rethans wrote: > On Sun, 12 Apr 2015, Peter Lind wrote: > > > Hi, > > > > I wanted to get into PHP code development so I grabbed a random bug from > > bugs.php.net. Which turned out to be > https://bugs.php.net/bug.php?id=69378 &

Re: [PHP-DEV] DateInterval bug

2015-04-13 Thread Peter Lind
On 13 April 2015 at 22:20, Derick Rethans wrote: > On Sun, 12 Apr 2015, Peter Lind wrote: > > > Hi, > > > > I wanted to get into PHP code development so I grabbed a random bug from > > bugs.php.net. Which turned out to be > https://bugs.php.net/bug.php?id=69378 &

Re: [PHP-DEV] PDO Oracle driver

2015-04-22 Thread Peter Cowburn
cc-ing doc list On 22 April 2015 at 10:40, Stelian Mocanita wrote: > Hello internals, > > I would like to ask what on your thoughts on removing the Oracle drive for > PDO from the documentation (http://us1.php.net/manual/en/ref.pdo-oci.php) > at least since it's been experimental for a long time

Re: [PHP-DEV] PDO Oracle driver

2015-04-22 Thread Peter Cowburn
On 22 April 2015 at 11:24, Peter Cowburn wrote: > cc-ing doc list > > On 22 April 2015 at 10:40, Stelian Mocanita > wrote: > >> Hello internals, >> >> I would like to ask what on your thoughts on removing the Oracle drive for >> PDO from the documentatio

Re: [PHP-DEV] PDO Oracle driver

2015-04-22 Thread Peter Cowburn
On 22 April 2015 at 11:40, Stelian Mocanita wrote: > Peter, > > I did not know about the documentation part, thanks for clearing that out. > > I would like to ask though, what is the benefit of having the dead > extensions there? > From my point of view, it does more harm

Re: [PHP-DEV] Soft-reserve "void" class name

2015-05-19 Thread Peter Cowburn
On 19 May 2015 at 17:16, Levi Morrison wrote: > I strongly disagree with this action. These types required an RFC; why > should this be different? Also note that neither of the reserve > typename RFC were unanimous. > > Furthermore, we are past the RFC stage. We are *supposed to already > have an

Fwd: [PHP-DEV] [RFC] [PHP 7.1] libsodium

2015-05-21 Thread Peter Petermann
isely this purpose: > https://wiki.php.net/rfc/libsodium > > Regards, > > Scott Arciszewski > Chief Development Officer > Paragon Initiative Enterprises <https://paragonie.com> > -- Peter Petermann Email: ppeterman...@gmail.com - get my public PGP key from SKS Keyservers PGP Key: http://pool.sks-keyservers.net:11371/pks/lookup?op=get&search=0x0E6DBD675836A5C7

Re: [PHP-DEV] error git push - You have insufficient Karma for gtk-src.git!

2015-06-07 Thread Peter Cowburn
On 7 June 2015 at 14:14, Alexandre Pereira Bühler < alexan...@simaoebuhler.com.br> wrote: > Kaplan, > Good day, > I already have karma to push in > http://git.php.net/?p=web/gtk.git;a=summary > See: https://people.php.net/user.php?username=buhlerax > The problem is that the php-gtk project is half

Re: [PHP-DEV] [RFC][VOTE] Improved Error Callback Mechanism

2015-06-10 Thread Peter Cowburn
On 28 April 2015 at 14:24, Olivier Garcia wrote: > Dear Internals, > > The "Improved Error Callback Mechanism" RFC is now in voting phase. > > You can cast your vote on the Wiki [1] and the according patch is > available as a Pull Request [2]. > > Vote will be open for two weeks, counting from to

Re: [PHP-DEV] PHP 7.1 Cryptography Projects

2015-08-04 Thread Peter Lind
On 4 August 2015 at 10:13, Lauri Kenttä wrote: > On 2015-08-03 23:54, Scott Arciszewski wrote: > >> $AES = new \PCO\Symmetric('openssl:cipher=AES-128'); >> > > It would be great if you could just ask for cipher=AES-128 without > explicitly specifying the provider (openssl). > > Even better wo

Re: [PHP-DEV] PHP 7.1 Cryptography Projects

2015-08-04 Thread Peter Lind
On 4 August 2015 at 13:56, Scott Arciszewski wrote: > > Hi Peter, > > It's not really a "made-up string format", in the sense that it has a > precedent (PDO). > > True, and that format sucks royally. It trips people up. Combining several arguments into one

Re: [PHP-DEV] set_exception_handler catches all Throwables

2015-08-19 Thread Peter Cowburn
On 17 August 2015 at 15:24, Sebastian Bergmann wrote: > Am 17.08.2015 um 16:00 schrieb Derick Rethans: > > Actually, I don't call this intended. This is just as much as a BC break > > as the original implementation where Errors where also Exceptions. IMO, > > set_exception_handler() should be cha

[PHP-DEV] Native SSL support in Phar extension

2024-08-26 Thread Peter Kokot
Hello, There came up another idea/issue about the Phar extension and its native SSL support. As you might know or not, when building PHP: ./configure --with-openssl --enable-phar the Phar extension will get so-called native SSL enabled through OpenSSL directly. However, when built like this: .

Re: [PHP-DEV] Native SSL support in Phar extension

2024-08-26 Thread Peter Kokot
On Mon, 26 Aug 2024 at 20:05, Calvin Buckley wrote: > As such, it might be a bit tricky for people on Windows/AIX; the easiest > solution if PHAR is using the openssl extension's symbols would be to not > build the openssl extension as shared. I've just checked Windows build and the PHP downloade

Re: [PHP-DEV] Where to document configuration option changes?

2024-09-04 Thread Peter Kokot
On Wed, 4 Sept 2024 at 15:07, Christoph M. Becker wrote: > > Hi all, > > that issue came up the other day on a pull request[1], but since it is > not particularly related to any single PR, I wanted to ask here for > clarification. > > This is about changes to `./configure` options of php-src, and

Re: [PHP-DEV] Realnames in Git commits

2011-12-15 Thread Peter Cowburn
On 15 December 2011 16:19, David Soria Parra wrote: > As outlined in my previous post. An author in git is identified > by "NAME ". We will rewrite commit information to match > this format during the SVN to Git migration. At the moment > this affects php-src only, but it will probably expand to o

Re: [PHP-DEV] Exceptions for method on non-object rather than fatal (desired feature?)

2012-02-22 Thread Peter Lind
asonable in many cases, IMO, but makes all chains a potential fatal. An exception would make a lot more sense, and allow us to centralize handling of such "exceptional" cases rather than throwing if-checks everywhere. (Which is exactly what exceptions are for.) > > --Larry Garfield > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > Seems to me this change would encourage bad habits (breaking the law of Demeter) which would personally put me against it. Regards Peter

Re: [PHP-DEV] Exceptions for method on non-object rather than fatal (desired feature?)

2012-02-22 Thread Peter Lind
On 22 February 2012 20:04, Larry Garfield wrote: > On 2/22/12 12:37 PM, Peter Lind wrote: > >>> I would also support this.  There's a myriad reasons why something may >> >> return NULL or FALSE when you expect it to return an object, some of them >> even

Re: [PHP-DEV] get_magic_quotes_* != deprecated?

2012-03-02 Thread Peter Cowburn
On 2 March 2012 01:56, Philip Olson wrote: > Hello! > > Please clarify whether or not get_magic_quotes_gpc() and > get_magic_quotes_runtime() > are deprecated, because I do not think they are. Deprecated means people > should not > use them while writing new code, but they are perfectly sensible

Re: [PHP-DEV] Re: Quoting again (Was: Re: [PHP-DEV] [RFC] Config setting to force all math operations to pass through BCMath library.

2012-03-07 Thread Peter Cowburn
Hi Pierre, The length of the reply being replied On 7 March 2012 10:12, Pierre Joye wrote: > On Wed, Mar 7, 2012 at 11:05 AM, Derick Rethans wrote: > > to is irrelevant. The length of the reply is also > > The mailinglist guidelines also are for you, so let me repeat what I > > wrote yester

Re: [PHP-DEV] any blogs?

2012-03-08 Thread Peter Beverloo
There is a Planet PHP which aggregates many blogs articles written by contributors: http://planet-php.net/ Peter On Thu, Mar 8, 2012 at 09:58, adit adit wrote: > Hi, > > Can you tell me which one of you guys has any blogs on which i can read > about the php internals? > I'v

Re: [PHP-DEV] I need more karma for ext/interbase folder

2012-03-30 Thread Peter Cowburn
On 30 March 2012 11:51, Ferenc Kovacs wrote: > AFAIK mariuz should have karma for the interbase and pdo_firebird exts, see > http://svn.php.net/viewvc/SVNROOT/global_avail?view=markup#l176 and > http://svn.php.net/viewvc/SVNROOT/global_avail?view=markup#l292 > so it is either a bug in the new kar

Re: [PHP-DEV] I need more karma for ext/interbase folder

2012-03-30 Thread Peter Cowburn
On 30 March 2012 12:28, Ferenc Kovacs wrote: > > nice catch! > Thanks. Here's an updated patch since Pierre changed the firebird karma. Maybe Pierre could apply this? :) Index: global_avail === --- global_avail(revision 32463

Re: [PHP-DEV] I need more karma for ext/interbase folder

2012-03-30 Thread Peter Cowburn
On 30 March 2012 12:35, Peter Cowburn wrote: > > Thanks. Here's an updated patch since Pierre changed the firebird karma. > Maybe Pierre could apply this? :) > Philip has applied the patch, I don't know how often the git server updates the karma file but you should be able

Re: [PHP-DEV] [RFC] skipping optional parameters

2012-04-17 Thread Peter Lind
tional parameters always get NULLs > or their default values? It needs to be the default values, otherwise it will be a huge WTF for developers. With that in mind: +1 if default values are used when skipping parameters, -1 if NULL is used when skipping parameters (not that I have voting pow

Re: [PHP-DEV] [RFC] skipping optional parameters

2012-04-18 Thread Peter Cowburn
On 18 April 2012 10:25, Daniel Macedo wrote: > But I couldn't support the comma train, for the insane «lots of > parameters» case, would hate to read some fn($some $var,,, $other) > call. > I'd rather reuse a reserved word like 'default' (or even get a shorter > one?) > > How about "null"? (T

Re: [PHP-DEV] [RFC] skipping optional parameters

2012-04-18 Thread Peter Cowburn
On 18 April 2012 11:38, Daniel Macedo wrote: > You can't do that, NULL is a perfectly acceptable value to pass into a > function, you wouldn't be able to know when you wanted to pass NULL or > use the default value, e.g.: > > You totally missed the point: hinting, not-so-subtly, at the long-estab

Re: [PHP-DEV] running tests in parallel?

2012-05-03 Thread Peter Lind
em run in parallel would be a very nice feature :) Regards Peter -- WWW: plphp.dk / plind.dk LinkedIn: plind BeWelcome/Couchsurfing: Fake51 Twitter: kafe15 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Adding a simple API for secure password hashing?

2012-06-14 Thread Peter Lind
y by mixing sources? I.e. will the result be "more random"? Won't it just be as random as the most random source? Other than that, the SPL version seems like a nice idea. Regards Peter -- WWW: plphp.dk / plind.dk LinkedIn: plind BeWelcome/Couchsurfing: Fake51 Twitter: ka

Re: [PHP-DEV] Adding a simple API for secure password hashing?

2012-06-14 Thread Peter Lind
On 14 June 2012 15:35, Anthony Ferrara wrote: > Peter, > >> Whether or not a CSPRNG is needed depends on what you're doing, your >> needed level of security. Perhaps add a parameter to control this, so >> it would be possible to make use of this function even if you

Re: [PHP-DEV] Adding a simple API for secure password hashing?

2012-06-14 Thread Peter Lind
o promote either. > You wouldn't be "educating in the right way". And I'm obviously not advocating a shared salt (at least, I wasn't thinking I was, especially seeing as I asked for a parameter in function to make sure that salts would be more random). Regards Peter -

Re: [PHP-DEV] Make try/catch brackets optinal

2012-07-19 Thread Peter Beverloo
. > Other bracket-less blocks allow authors to shoot themselves in the foot equally so, yet PHP supports these as well. The actual problem here is an inconsistency in the parser, which I'd consider to be a bug. Peter > -- > Rafael Dohms > PHP Evangelist and Community Leader > http://www.rafaeldohms.com.br > http://www.phpsp.org.br >

Re: [PHP-DEV] [PROPOSED] password_hash RFC - Implementing simplified password hashing functions

2012-07-31 Thread Peter Lind
_hash($my_128_char_pepper . $password, PASSWORD_DEFAULT); Which obviously renders the hashing useless, as you'll be hashing the same 72 chars over and over again. Which, currently, crypt() let's you get away with without as much as a hiccup. Regards Peter -- WWW: plphp.dk / plind.dk CV:

Re: [PHP-DEV] [PROPOSED] password_hash RFC - Implementing simplified password hashing functions

2012-07-31 Thread Peter Lind
On 31 July 2012 22:02, Anthony Ferrara wrote: > Peter, > > On Tue, Jul 31, 2012 at 3:46 PM, Peter Lind wrote: >> >> On 31 July 2012 18:21, Anthony Ferrara wrote: >> >> *snip* >> >> > >> > Also, be aware that BCrypt only uses the first

Re: [PHP-DEV] PHP 5.x Documentend End Of Life Dates

2012-08-02 Thread Peter Cowburn
On 2 August 2012 07:35, Adam Harvey wrote: > Thoughts? (Do we even want to auto-fill this from $OLDRELEASES, or > would we rather have a manual array?) Specific notes on > vulnerabilities to add to branches? Better versions of the copy in the > initial blurb? Why is this information not just disp

Re: Re: [PHP-DEV] PHP 5.x Documentend End Of Life Dates

2012-08-02 Thread Peter Cowburn
On 2 August 2012 09:36, Morgan L. Owens wrote: > Just as each release announcement dated with detailed kept on a distinct > page (linked in that list), all that's needed there is a date when support > ended, with (any available) information on what was obsoleted in the process > also on a distinct

Re: [PHP-DEV] missing documentation for use-clause in closures?

2012-08-03 Thread Peter Cowburn
On 3 August 2012 16:09, Rasmus Schultz wrote: > Is this all the documentation there is for the use-clause for > anonymous closures? > > http://us2.php.net/manual/en/functions.anonymous.php > > For one, it would be nice to have documentation that explains whether > the variables listed in the use-c

Re: [PHP-DEV] re: removing an item from an array

2012-08-21 Thread Peter Cowburn
On 21 August 2012 23:26, Yasuo Ohgaki wrote: > array_walk is the best(fast and memory efficient) way > to delete elements. If array_walk() is the best (fast and memory efficient) way to delete elements, why have we had the following line in the manual, for the array_walk() callback, for over a de

[PHP-DEV] Aspect Oriented Programming in PHP

2012-08-23 Thread Peter Nguyen
nable AOP in PHP directly. I was wondering if there are any interests/possibility to include AOP into the PHP core? Best regards, Peter

Re: [PHP-DEV] Aspect Oriented Programming in PHP

2012-08-23 Thread Peter Nguyen
/8/23 William Betts > On Thu, Aug 23, 2012 at 7:36 AM, Peter Nguyen wrote: > > Hi, > > > > AOP (http://en.wikipedia.org/wiki/Aspect-oriented_programming) when used > > correctly, can make your application really modular. I've seen several > > implementat

Re: [PHP-DEV] Aspect Oriented Programming in PHP

2012-08-23 Thread Peter Nguyen
a on pastebin ;) But I have no idea how it could look > like > > Regards, > Sebastian > > > Am 23.08.2012 16:36, schrieb Peter Nguyen: > > Hi, >> >> AOP >> (http://en.wikipedia.org/wiki/**Aspect-oriented_programming<http://en.wikipedia.org/wiki

Re: [PHP-DEV] Aspect Oriented Programming in PHP

2012-08-24 Thread Peter Nguyen
s executed... Another option is not to use wildcards and define the joint point explicitly. 2012/8/24 Sebastian Krebs > 2012/8/24 Peter Nguyen > > > Your argument is a general issue when refactoring code. Whenever you > > change the name of a method/class, you need to change it in all

Re: [PHP-DEV] Aspect Oriented Programming in PHP

2012-08-24 Thread Peter Nguyen
> >> AOP is the future and a very awesome complement to OOP. It is a shame that >> very few are doing it and I think this would attract some good attention >> to >> PHP after traits (both are horizontal reuse mechanisms). >> >> On Fri, Aug 24, 2012 at 2:01 AM,

Re: [PHP-DEV] Aspect Oriented Programming in PHP

2012-08-24 Thread Peter Nguyen
Anthony, 2012/8/24 Anthony Ferrara > Peter, > > On Fri, Aug 24, 2012 at 2:36 PM, Peter Nguyen wrote: > >> This is exactly the "problem" that AOP solves. I think the decorator >> pattern is just a solution for the shortcoming of the language itself. > >

Re: [PHP-DEV] Aspect Oriented Programming in PHP

2012-08-25 Thread Peter Nguyen
FYI, there is already namespace support in the extension, and you can also use type hinting on the pointcuts with interfaces/traits besides class names.

Re: [PHP-DEV] Re: [VOTE]Call for voting: support use list in foreach

2012-08-26 Thread Peter Cowburn
On 26 August 2012 18:48, Stas Malyshev wrote: > >> I got a PHP Wiki account but couldn't vote. Are you sure the Wiki >> accounts got the permissions to vote? > > Hm... Not sure, maybe somebody has to enable it? There is a special group ("voting" IIRC) for wiki accounts with voting rights. "Ordin

Re: [PHP-DEV] Re: [VOTE]Call for voting: support use list in foreach

2012-08-26 Thread Peter Cowburn
On 26 August 2012 19:20, Stas Malyshev wrote: > Putting aside the fact that democracy has very little to do with what > we're trying to do here (we're not government, we're opensource > project), that's how democracy *doesn't work*. As you noticed, it is > "too bad", and it is exactly the problem

Re: [PHP-DEV] Aspect Oriented Programming in PHP

2012-08-26 Thread Peter Nguyen
That's why I thnk the extension is superior to all other solutions, because it doesn't require code generation in userland. Also, it will be possible to backtrace to the declaration of the aspects. 2012/8/26 Rasmus Schultz > > > > On Thu, Aug 23, 2012 at 7:36 AM, Peter Ngu

Re: [PHP-DEV] RFC for Adding __toString to DateTime

2012-09-02 Thread Peter Cowburn
" (read: per-instance) string format with something like setToStringFormat() or whatever, that becomes *more* work than just calling format(). Thank you kindly, Peter -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] RFC for Adding __toString to DateTime

2012-09-03 Thread Peter Lind
Best solution from a random developers perspective: - stick the 4-line solution in the docs and on to the bug report. Then mark as won't implement It's a far better solution than choosing a random format for users, as should be more than evident by now. Regards Peter -- WWW

Re: [PHP-DEV] E_STRICT 'errors' - was Are exceptions allowed in php core?

2012-09-04 Thread Peter Lind
duction Value: Off In a production environment with display_errors off, E_STRICT doesn't crash anything. Actually, even with it on, it doesn't crash anything - shitty code does, by creating notices and then using header() calls afterwards to create redirects. Solution: fix your server. Fix

Re: [PHP-DEV] Should I report this bug/exploit?

2005-04-04 Thread Peter Brodersen
know - I'm still yackin' about the print_r(glob("{/home/currentuser/,/etc/}*",GLOB_BRACE)) issue combined with the glob file name disclosure issue) -- - Peter Brodersen -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [PATCH] Modifications for ext/session/

2005-04-22 Thread Peter Brodersen
LOB_BRACE)); .. are possible even in safe_mode/open_basedir-restrictions, these new functions will have pretty small effect unless one works his way entirely around the session functionality in the first place... E.g.: http://basedir.ter.dk/globall.php -- - Peter Brodersen -- PHP Internals - PHP

Re: [PHP-DEV] Re: References Problem Patch

2005-05-30 Thread Peter Brodersen
beta"-consideration. For the sake of the references-fix, I suppose it's a case of DIYDDIYD. I agree with Zeev regarding the importance of the wording in the release notes. -- - Peter Brodersen -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: PHP 6.0 Wishlist

2005-08-13 Thread Peter Brodersen
;) == ...) Of course I'm not against notices, but I think there is a clear distinction (or should be...) between stuff that might exist beyond our control (user-submitted data) and stuff that we rely on (own variables). But all in all: very exciting. As mentioned, there really migh

[PHP-DEV] Re: PHP Unicode support design document

2005-08-16 Thread Peter Brodersen
instead of \\1 or $1) I'm not that worried about my own preg-usage. I just want to be prepared if I ever have to review some code for the purpose of migrating to PHP6. -- - Peter Brodersen -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Can someone tell me ...

2005-08-25 Thread Sven Peter
Hi, > Why this crashes: > > php -r 'class a { function b() { return $this->b(); }} $c = new a(); $c- > >b();' > > and this does not? > > php -r 'function a() { return a(); }' because you forgot to call a(); This also crashes: php -r "function a() { return a(); } a();" Sven -- PHP Internals -

[PHP-DEV] Re: glob to take array as an arg

2005-08-30 Thread Peter Brodersen
f,pdf,bmp,raw}",GLOB_BRACE)); If all you want is to supply glob() with a list of full or partial patterns I think the desired functionality is already present. -- - Peter Brodersen -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: glob to take array as an arg

2005-08-31 Thread Peter Brodersen
ms like glob.h is that troublesome. -- - Peter Brodersen -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: Bogusing bot (Was: [PHP-DEV] Reference handling change and PHP4.4.0)

2005-09-15 Thread Peter Brodersen
t an observation than solutions. Some of the suggestions might even be patronizing ("you should reply in a good manner, not in a bad manner"). I suppose there are reasons for many things. I suppose a lot of the .-answers are when there are many open bugs and a nice developer decides that

Re: [PHP-DEV] Re: Bogusing bot (Was: [PHP-DEV] Reference handlingchange and PHP4.4.0)

2005-09-19 Thread Peter Brodersen
like users to search the bug database at first it might be treated more as a knowledge base. It wouldn't be a here-and-now solution but could reduce the bogus bug submissions in time. -- - Peter Brodersen -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] timezones & date() breakage

2005-09-27 Thread Peter Brodersen
spect a lot of applications will. The >fact date() now tries to be intelligent about it but fail is a real problem. Just out of curiousity of the scope of this issue... where did the string "IDT" come from in the first place? Any specific distribution? Default OS setting? -- - Peter

[PHP-DEV] Re: New site: http://pecl4win.php.net/

2005-09-29 Thread Peter Brodersen
L >extension, point your browser at >http://pecl4win.php.net/ext.php/php_oci8.dll AOL! I mean... great work! :-) -- - Peter Brodersen -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] timezones & date() breakage

2005-09-29 Thread Peter Brodersen
eloper/user with no control of his sysadm's settings? Would there be any concerns for PHP users who would like their code to work in different setups? (one with the old behaviour, one with the new behaviour - both running the same 5.1.x version) -- - Peter Brodersen -- PHP Internals -

Re: [PHP-DEV] $ref =& $this;

2005-10-06 Thread Peter Brodersen
ehaviour could be a disservice as well. Even though they were meant to ease a BC transition, you suddently can't be sure if your code runs on any other servicer even if the x.y.z version is the same. In some cases it could just result in Even Another Intial Ini-Check In Your PHP Code. -- - P

[PHP-DEV] Re: CLI in PHP6

2005-10-06 Thread Peter Brodersen
re thinking of. I can't see any reason for that statement, though. -- - Peter Brodersen -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Unicode Implementation

2005-10-10 Thread Peter Brodersen
On Sun, 9 Oct 2005 00:55:45 -0400 (EDT), in php.internals [EMAIL PROTECTED] (Adam Maccabee Trachtenberg) wrote: >We seem to be under the impression that the Unicode speed penalty will >be so harsh that a Unicode-only PHP 6 will be too slow for >use. However, we don't know that for sure. Yes, it wi

[PHP-DEV] Re: Expose php: on or off

2005-11-10 Thread Peter Brodersen
e cumbersome to help people with php issues as the php version is not directly available. Honestly I'm not sure how I would feel on the "expose version number" issue if e.g. google would allow people to restrict their searches based on header information as well. -- - Peter Brodersen -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: Expose php: on or off

2005-11-10 Thread Peter Brodersen
rojects. Apache, mod_ssl, mod_perl and so on. I can't recall they seriously would encourage people to disable version information so much that they would change their default settings to reflect this. I would agree with Markus. This is security by obscurity. The automated attacks do happen anyw

[PHP-DEV] Re: PDM Meeting Notes

2005-11-24 Thread Peter Brodersen
Furthermore, and just a though: would it be possible to have an option when compiling an apache module of setting the open_basedir value to the same as the virtual host's DOCUMENT_ROOT? I think deployment could be much easier this way. (oh yeah, and I really hope glob() results would

Re: [PHP-DEV] Re: PDM Meeting Notes

2005-11-24 Thread Peter Brodersen
Of course the larger web service providers would have automated their virtual host generation and Apache2 users might just use mod_macro. Personally I feel it kind of redundant to specify the users document_root as their open_basedir value (although other might want to allow one level up giving

Re: [PHP-DEV] Re: PDM Meeting Notes

2005-11-25 Thread Peter Brodersen
w files. Other users wouldn't be able to read the files belonging to "penguin". This might be out of scope for php, but as a recommended setup I think it would be fair to provide hints for general setup. (and once again, I agree that safe_mode is not safe, it is a poor functiona

Re: [PHP-DEV] Re: PDM Meeting Notes

2005-11-25 Thread Peter Brodersen
"disable_exec_functions" might be a setting that is clear about its purpose and impact. -- - Peter Brodersen -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: PDM Meeting Notes

2005-11-25 Thread Peter Brodersen
de would disable. Furthermore, this behaviour would be vulnerable to new exec-functions requiring a lot of maintenance for end users. If this really is best practice, why don't we just rename safe_mode to "disable_exec_functions" (and maybe remove UID checks)? It would be easier to mai

Re: [PHP-DEV] Re: PDM Meeting Notes

2005-11-26 Thread Peter Brodersen
ralized (the current php script) I guess my main concern is that open_basedir is kept in PHP6 (based on the talks), but it is pretty much useless if not backed up by other tools (disable_exec_functions, some_exec_dir_restriction, ...) -- - Peter Brodersen -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: PDM Meeting Notes

2005-11-26 Thread Peter Brodersen
sible new directives it would be too early to put up some text. -- - Peter Brodersen -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Safe mode being removed in PHP6?

2007-11-05 Thread Peter Brodersen
anging list of functions under disable_functions which would make upgrades cumbersome. -- - Peter Brodersen -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: faster & public domain MD5 implementation

2007-12-09 Thread Peter Brodersen
y an input where the number of bits does not add up to a number divisible by eight? Or is this feature of md5 simply not relevant to anybody? -- - Peter Brodersen -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [PATCH] date/timelib: use system timezone database

2008-01-11 Thread Peter Brodersen
a whole "independent" language. I wouldn't like to see php projects have to create different packages with individual code for different types of os or distribution. -- - Peter Brodersen -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: Array syntax []

2008-01-11 Thread Peter Brodersen
+1 (sorry for the first post) -- - Peter Brodersen -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: Array syntax []

2008-01-11 Thread Peter Brodersen
them and maybe the ones >who don't would go through the same process I went through once they get >used to it J > > > >Andi > > -- - Peter Brodersen -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [PATCH] Bug #43896 htmlspecialchars returns empty stringon invalid unicode sequence

2008-01-28 Thread Peter Brodersen
also expects the input to be UTF-8 encoded, but it replaces incomplete sequences with the character "?". I don't know if it is a recommended standard for invalid input but I have seen this conversion as well in a couple of other applications, e.g. Firefox. -- - Peter Brodersen -- PH

Re: [PHP-DEV] [PATCH] Bug #43896 htmlspecialchars returns empty stringoninvalid unicode sequence

2008-01-28 Thread Peter Brodersen
",utf8_decode(chr(0xE0)));'; done 07 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 09 00 $ for a in `seq 1 20`; do php -r 'printf("%02x ",utf8_decode(chr(0xE0)));'; done 08 00 00 02 00 00 00 00 00 05 00 00 00 05 00 00 07 00 09 00 $ for a in `seq 1 20`; do php -r

Re: [PHP-DEV] [PATCH] Bug #43896 htmlspecialchars returns empty stringoninvalid unicode sequence

2008-01-28 Thread Peter Brodersen
t) I'm not fond of the "?" feature as well, but it is present in utf8_decode() and other non-php applications with utf-8 conversion. My guess is still that some standard recommends this conversion as a possible fallback for error handling. -- - Peter Brodersen -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [PATCH] Bug #43896 htmlspecialchars returns empty stringoninvalid unicode sequence

2008-01-28 Thread Peter Brodersen
ormed sequences or unavailable characters does not conform to ISO 10646, will make debugging more difficult, and can lead to user confusion. == -- - Peter Brodersen -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   3   4   5   6   7   >