Re: [PHP-DEV] [RFC] Magic Quotes in PHP, the Finalle

2011-07-18 Thread Reindl Harald
Am 19.07.2011 01:12, schrieb Ferenc Kovacs: >> since this is default OFF there is no warning if not configured >> empty php.ini implicits = Off > > sadly no: > > tyrael@thor:~/checkouts$ php -n -r 'echo PHP_VERSION."\n";echo > ini_get("magic_quotes_gpc")."\n";' > 5.3.6-6~dotdeb.1 > 1 > > tyrae

Re: [PHP-DEV] is gcov.php.net still useful?

2011-07-18 Thread Felipe Pena
2011/7/18 Stas Malyshev : > Hi! > >> The gcov.php.net machine is about to die. Nexcess (the owner) already >> offered us the possibility to get a replacement. >> However, before accepting their offer I would like to know if someone is >> still using the gcov.php.net service. Is it still useful for

Re: [PHP-DEV] is gcov.php.net still useful?

2011-07-18 Thread Stas Malyshev
Hi! The gcov.php.net machine is about to die. Nexcess (the owner) already offered us the possibility to get a replacement. However, before accepting their offer I would like to know if someone is still using the gcov.php.net service. Is it still useful for anyone? I think test coverage, valgri

Re: [PHP-DEV] [RFC] Magic Quotes in PHP, the Finalle

2011-07-18 Thread Ferenc Kovacs
On Tue, Jul 19, 2011 at 1:08 AM, Reindl Harald wrote: > > > Am 19.07.2011 00:46, schrieb Ángel González: >> Derick Rethans wrote: >>> "Raise E_DEPRECATED when running the CGI or any web server SAPI and a >>> php.ini file does not contain “magic_quotes_gpc = Off”." >>> >>> and >>> >>> "Raise E_ERRO

Re: [PHP-DEV] [RFC] Magic Quotes in PHP, the Finalle

2011-07-18 Thread Reindl Harald
Am 19.07.2011 00:46, schrieb Ángel González: > Derick Rethans wrote: >> "Raise E_DEPRECATED when running the CGI or any web server SAPI and a >> php.ini file does not contain “magic_quotes_gpc = Off”." >> >> and >> >> "Raise E_ERROR when running the CGI or any web server SAPI and a php.ini >> fil

Re: [PHP-DEV] [RFC] Magic Quotes in PHP, the Finalle

2011-07-18 Thread Ángel González
Derick Rethans wrote: "Raise E_DEPRECATED when running the CGI or any web server SAPI and a php.ini file does not contain “magic_quotes_gpc = Off”." and "Raise E_ERROR when running the CGI or any web server SAPI and a php.ini file does not contain “magic_quotes_gpc = Off”." Doesn't that mean t

[PHP-DEV] is gcov.php.net still useful?

2011-07-18 Thread Nuno Lopes
Hi, The gcov.php.net machine is about to die. Nexcess (the owner) already offered us the possibility to get a replacement. However, before accepting their offer I would like to know if someone is still using the gcov.php.net service. Is it still useful for anyone? A new machine means installi

Re: [PHP-DEV] [PATCH] crypt_blowfish 1.2

2011-07-18 Thread Pierre Joye
hi! Thanks for the patches, applied to all active branches. About the tests, it would be very good to have them ported as phpt. As far as I remember I did that back then when I first ported it to php. Cheers, On Sun, Jul 17, 2011 at 8:26 PM, Solar Designer wrote: > Hi, > > I released crypt_blo

Re: [PHP-DEV] [RFC] Weak References

2011-07-18 Thread Etienne Kneuss
Hi, On Mon, Jul 18, 2011 at 20:12, Adam Harvey wrote: > On Jul 18, 2011 9:20 AM, "Hannes Landeholm" wrote: >> In a nutshell: The RFC proposes adding a single class called "SplWeakRef" >> which provides the "Weak Reference" feature. This is the only change. > > This may just be Monday morning fuz

Re: [PHP-DEV] [RFC] Weak References

2011-07-18 Thread Hannes Landeholm
Hi, Yes, I'm also interested in caching - It's a very interesting subject... borderline philosophical. When you are caching model instances in a database object relation layer you could clearly benefit from implementing some kind of caching mechanism that retains object even though it's unclear wh

Re: [PHP-DEV] [RFC] Weak References

2011-07-18 Thread Adam Harvey
On Jul 18, 2011 11:51 AM, "Hannes Landeholm" wrote: > Weak references is an OOP concept. Scalar data types and arrays are not OOP-related so I don't think that would make sense. Variable references is not the same as object references. A variable reference is simply a variable that is connected wi

Re: [PHP-DEV] [RFC] Weak References

2011-07-18 Thread Hannes Landeholm
Weak references is an OOP concept. Scalar data types and arrays are not OOP-related so I don't think that would make sense. Variable references is not the same as object references. A variable reference is simply a variable that is connected with another variable (if you set one it will change the

Re: [PHP-DEV] PHP 5.3.7, upgrade Libpng to 1.2.45

2011-07-18 Thread Pierre Joye
yes, I do use the latest versions, always if there are security related fixes in them. Thanks for the headup! On Mon, Jul 18, 2011 at 8:05 PM, James Yu wrote: > HI, > > A venerability issue was found in libpng 1.2.44 which was used by PHP > 5.3.7 RC3. See PHP/ext/gd > > http://old.nabble.com/lib

Re: [PHP-DEV] [RFC] Magic Quotes in PHP, the Finalle

2011-07-18 Thread Adam Harvey
On Jul 18, 2011 9:42 AM, "Pierre Joye" wrote: > As far as I can remember, it was something along these lines: > > - GPC beeing killed means they are off, always. That also means that > the default is Off too. > - a warning is raised when one tries to call > set_magic_quotes_runtime(true); That's t

Re: [PHP-DEV] [RFC] Weak References

2011-07-18 Thread Adam Harvey
On Jul 18, 2011 9:20 AM, "Hannes Landeholm" wrote: > In a nutshell: The RFC proposes adding a single class called "SplWeakRef" > which provides the "Weak Reference" feature. This is the only change. This may just be Monday morning fuzziness, or I've just missed something in the RFC, but is there

[PHP-DEV] PHP 5.3.7, upgrade Libpng to 1.2.45

2011-07-18 Thread James Yu
HI, A venerability issue was found in libpng 1.2.44 which was used by PHP 5.3.7 RC3. See PHP/ext/gd http://old.nabble.com/libpng-1.5.4%2C-1.4.8%2C-1.2.45%2C-and-1.0.55-are-available-to32013073.html#a32013073 I was wondering is it possible to upgrade the Libpng in PHP 5.3.7 (RC 4)? Thanks, James

Re: [PHP-DEV] [RFC] Magic Quotes in PHP, the Finalle

2011-07-18 Thread Philip Olson
On Jul 18, 2011, at 7:39 AM, Daniel Convissor wrote: > Hi Folks: > > We all want to see Magic Quotes go away. Discussions on this list indicate > several people are concerned with doing this in a safe and orderly > manner. [1][2] To this end, I have posted an RFC at > https://wiki.php.net/rfc/

Re: [PHP-DEV] PHP array shorthand changes: splice?

2011-07-18 Thread Pierre Joye
hi. On Mon, Jul 18, 2011 at 6:08 PM, Justin Rovang wrote: > I've sifted through the RFC for the array shorthand changes which are quite > nice. Something I'm sure has been brought up, but possibly not recently: > shorthand array splice. Has there been any notion to the introduction of > this feat

Re: [PHP-DEV] [RFC] Magic Quotes in PHP, the Finalle

2011-07-18 Thread Pierre Joye
hi Daniel, What is wrong with the solution we came in the past to kill them? It covers everything this RFC is trying to define and in a cleaner way. Cleaner as in not being noisy in all possible ways. As far as I can remember, it was something along these lines: - GPC beeing killed means they ar

Re: [PHP-DEV] [RFC] Magic Quotes in PHP, the Finalle

2011-07-18 Thread Derick Rethans
On Mon, 18 Jul 2011, Daniel Convissor wrote: > Hi Folks: > > We all want to see Magic Quotes go away. Discussions on this list indicate > several people are concerned with doing this in a safe and orderly > manner. [1][2] To this end, I have posted an RFC at > https://wiki.php.net/rfc/magicquot

[PHP-DEV] [RFC] Weak References

2011-07-18 Thread Hannes Landeholm
Hello, This is the official RFC discussion thread for Weak References and an announcement of the RFC. Please read the RFC before replying: https://wiki.php.net/rfc/weakreferences In a nutshell: The RFC proposes adding a single class called "SplWeakRef" which provides the "Weak Reference" feature

[PHP-DEV] PHP array shorthand changes: splice?

2011-07-18 Thread Justin Rovang
I've sifted through the RFC for the array shorthand changes which are quite nice. Something I'm sure has been brought up, but possibly not recently: shorthand array splice. Has there been any notion to the introduction of this feature in the future? The reason I bring this up is it seems that

Re: [PHP-DEV] [RFC] Magic Quotes in PHP, the Finalle

2011-07-18 Thread David Soria Parra
On 2011-07-18, Keloran wrote: > --20cf307c9ff207e6fd04a859d2f6 > Content-Type: text/plain; charset=ISO-8859-1 > > personally I'm of the opinion that even 5.4 should actually cause a fatal > error, but I know this not going to happen > > 5.4 throw an E_DEPRECATED, but with this being rolled into E_

Re: [PHP-DEV] [RFC] Magic Quotes in PHP, the Finalle

2011-07-18 Thread Richard Quadling
On 18 July 2011 16:40, Keloran wrote: > personally I'm of the opinion that even 5.4 should actually cause a fatal > error, but I know this not going to happen > > 5.4 throw an E_DEPRECATED, but with this being rolled into E_ALL, it still > might get ignored > 5.4.1 set default to off > 5.4.4 throw

Re: [PHP-DEV] [RFC] Magic Quotes in PHP, the Finalle

2011-07-18 Thread Keloran
personally I'm of the opinion that even 5.4 should actually cause a fatal error, but I know this not going to happen 5.4 throw an E_DEPRECATED, but with this being rolled into E_ALL, it still might get ignored 5.4.1 set default to off 5.4.4 throw an E_WARNING or E_FATAL if turned on On Mon, Jul

Re: [PHP-DEV] weak references

2011-07-18 Thread Lars Strojny
While I like SplWeekRef and the somewhat proposed SplWeekRefList, you’ll find attached a patch that exposes a simple function „refcount“ having this signature: int refcount(mixed value) So if you would like to play around with it, have fun. It would be interesting to see if there are any other us

[PHP-DEV] [RFC] Magic Quotes in PHP, the Finalle

2011-07-18 Thread Daniel Convissor
Hi Folks: We all want to see Magic Quotes go away. Discussions on this list indicate several people are concerned with doing this in a safe and orderly manner. [1][2] To this end, I have posted an RFC at https://wiki.php.net/rfc/magicquotes_finale Please read it through, think about it, then po

Re: [PHP-DEV] [VOTE] 5.4 features vote

2011-07-18 Thread Ferenc Kovacs
On Mon, Jul 18, 2011 at 3:44 PM, Ferenc Kovacs wrote: > On Mon, Jul 18, 2011 at 12:16 PM, Derick Rethans wrote: >> On Wed, 13 Jul 2011, Ferenc Kovacs wrote: >> >>> On Wed, Jul 13, 2011 at 9:28 PM, Pierre Joye wrote: >>> > On Wed, Jul 13, 2011 at 9:14 PM, Stas Malyshev >>> > wrote: >>> >> >>> >

Re: [PHP-DEV] [VOTE] 5.4 features vote

2011-07-18 Thread Ferenc Kovacs
On Mon, Jul 18, 2011 at 12:16 PM, Derick Rethans wrote: > On Wed, 13 Jul 2011, Ferenc Kovacs wrote: > >> On Wed, Jul 13, 2011 at 9:28 PM, Pierre Joye wrote: >> > On Wed, Jul 13, 2011 at 9:14 PM, Stas Malyshev >> > wrote: >> >> >> >> Nobody runs PHP with -n, who would you do that? INIs are the r

Re: [PHP-DEV] [VOTE] 5.4 features vote

2011-07-18 Thread Daniel Convissor
Hi: On Sun, Jul 17, 2011 at 05:31:05PM -0700, Stas Malyshev wrote: > On 7/17/11 3:03 PM, Richard Quadling wrote: > > >My local ini file is 6 lines long. Works perfectly. > > And you rely on magic_quotes being on, right? Then you have peculiar > definition of "working perfectly". Let's not pick

Re: [PHP-DEV] [PATCH] crypt_blowfish 1.2

2011-07-18 Thread Pierre Joye
On Mon, Jul 18, 2011 at 1:23 AM, Pierre Joye wrote: >> Yes - need to release PHP versions with this code first. > > I think we should push this patch to 5.3 now as well, so it will be in > 5.3.7, it is important enough. > Got the OK for 5.3, I will apply the patches later today or tomorrow. Or i

Re: [PHP-DEV] [VOTE] 5.4 features vote

2011-07-18 Thread Derick Rethans
On Wed, 13 Jul 2011, Ferenc Kovacs wrote: > On Wed, Jul 13, 2011 at 9:28 PM, Pierre Joye wrote: > > On Wed, Jul 13, 2011 at 9:14 PM, Stas Malyshev > > wrote: > >> > >> Nobody runs PHP with -n, who would you do that? INIs are the recommended > >> setting, if you ignore that, you do it at your ow

Re: [PHP-DEV] Vote results

2011-07-18 Thread Peter Cowburn
On 18 July 2011 10:45, Pierre Joye wrote: > On Mon, Jul 18, 2011 at 11:23 AM, Peter Cowburn > wrote: > >> My meaning was simply that trying to explain what was being voted on, >> after the vote has closed, is too late. I'm aware of the previous >> discussions on the topic on this list. > > It ha

Re: [PHP-DEV] Re: [RFC] Improved parser error message

2011-07-18 Thread Sebastian Bergmann
On 06/23/2011 08:08 PM, Felipe Pena wrote: Patched: Parse error: syntax error, unexpected end of file, expecting 'identifier' (T_STRING) At least for developers who do not know how a compiler works, I think that we should think about removing the information duplication of "parse error" and

Re: [PHP-DEV] [VOTE] 5.4 features vote

2011-07-18 Thread Pierre Joye
hi, On Mon, Jul 18, 2011 at 11:44 AM, Richard Quadling wrote: > Currently working really only encompasses running PhD on Windows (new > setup for the new home laptop). > > But, in essence, the inability to rely on one default setting > inescapably leads to the inability to rely on any of the def

Re: [PHP-DEV] Vote results

2011-07-18 Thread Pierre Joye
On Mon, Jul 18, 2011 at 11:23 AM, Peter Cowburn wrote: > My meaning was simply that trying to explain what was being voted on, > after the vote has closed, is too late. I'm aware of the previous > discussions on the topic on this list. It has been explained dozen of times before the votes, that'

Re: [PHP-DEV] [VOTE] 5.4 features vote

2011-07-18 Thread Richard Quadling
On 18 July 2011 01:31, Stas Malyshev wrote: > Hi! > > On 7/17/11 3:03 PM, Richard Quadling wrote: >> >> Why bother having defaults if you don't use them. > > Err, well, the way PHP ini system works you always have defaults - something > is always stored in the hash. > >> My local ini file is 6 lin

Re: [PHP-DEV] Vote results

2011-07-18 Thread Peter Cowburn
On 18 July 2011 10:19, Pierre Joye wrote: > On Mon, Jul 18, 2011 at 11:15 AM, Peter Cowburn > wrote: >> On 18 July 2011 10:05, Pierre Joye wrote: >>> On Mon, Jul 18, 2011 at 10:49 AM, Peter Cowburn >>> wrote: On 17 July 2011 10:08, Stas Malyshev wrote: > > Remove magic quotes >>

Re: [PHP-DEV] Vote results

2011-07-18 Thread Pierre Joye
On Mon, Jul 18, 2011 at 11:15 AM, Peter Cowburn wrote: > On 18 July 2011 10:05, Pierre Joye wrote: >> On Mon, Jul 18, 2011 at 10:49 AM, Peter Cowburn >> wrote: >>> On 17 July 2011 10:08, Stas Malyshev wrote: Remove magic quotes Votes: 54 total, 21 PHP C

Re: [PHP-DEV] Vote results

2011-07-18 Thread Peter Cowburn
On 18 July 2011 10:05, Pierre Joye wrote: > On Mon, Jul 18, 2011 at 10:49 AM, Peter Cowburn > wrote: >> On 17 July 2011 10:08, Stas Malyshev wrote: >>> >>> Remove magic quotes >>> >>> Votes: 54 total, 21 PHP Core, 33 community >>> For removal: PHP group support: 18 (85%), c

Re: [PHP-DEV] Vote results

2011-07-18 Thread Pierre Joye
On Mon, Jul 18, 2011 at 10:49 AM, Peter Cowburn wrote: > On 17 July 2011 10:08, Stas Malyshev wrote: >> >> Remove magic quotes >> >> Votes: 54 total, 21 PHP Core, 33 community >> For removal: PHP group support: 18 (85%), community: 32 (96%) >> >> Again, 3 people voted against

Re: [PHP-DEV] Vote results

2011-07-18 Thread Peter Cowburn
On 17 July 2011 10:08, Stas Malyshev wrote: > > Remove magic quotes > > Votes: 54 total, 21 PHP Core, 33 community > For removal: PHP group support: 18 (85%), community: 32 (96%) > > Again, 3 people voted against: derick,salathe,zeev. Any comments? > Like everyone else, I want

Re: [PHP-DEV] weak references

2011-07-18 Thread Lars Schultz
Am 18.07.2011 10:15, schrieb Ferenc Kovacs: I think that having to know and care about refcounts and zvals are more complicated than having an Spl class, which can hold a reference for a variable what can be destroyed to free memory. and there is a chance that people are familiar with the Weak re

Re: [PHP-DEV] weak references

2011-07-18 Thread Ferenc Kovacs
>> I hope this will be more clear once the RFC is complete. I will then start >> a >> separate thread for official discussion. > > All I wanted was to point out that introducing such a thing might overly > complicate things for users not familiar with the concept...as the java guy > pointed out in

Re: [PHP-DEV] weak references

2011-07-18 Thread Lars Schultz
Am 18.07.2011 09:33, schrieb Hannes Landeholm: Lars: Please don't break up my sentences and take them out of context before you reply to them. (Hint: If a sentence begins with "so" it's not a good idea to just reply to that sentence.) Sorry for misquoting you. I intended to make it clear to which

Re: [PHP-DEV] deprecating ext/mysql

2011-07-18 Thread Julien Pauli
I agree with Johannes and Oracle/MySQL people : ext/mysqli must be the preferred way to replace ext/mysql. PDO lacks advanced features which wont be available because of PDO internals incompatibility. ext/mysqli is a true MySQL internal API exposure into PHP user land, PDO is not. Moreover, ext/m

Re: [PHP-DEV] [VOTE] 5.4 features vote

2011-07-18 Thread Stas Malyshev
Hi! On 7/17/11 6:32 PM, Philip Olson wrote: there been a proper discussion or RFC on this topic for 5.4. The vote was premature. Would it have turned out differently had we done it properly? Probably, but at least we'd have a proper reference point for why we removed a security feature that was

Re: [PHP-DEV] weak references

2011-07-18 Thread Hannes Landeholm
Lars: Please don't break up my sentences and take them out of context before you reply to them. (Hint: If a sentence begins with "so" it's not a good idea to just reply to that sentence.) If you are caching stuff you would rather want to use a strong reference since the objects should be retained