Re: [PHP-DEV] RFC: Implementing a core anti-XSS escaping class

2012-09-19 Thread David Muir
e a procedural API as well, lets make it concise and clear. The last thing we want for solving the no 1 security threat to web-apps is a confusing and hard-to-use API like the filter extension. Cheers, David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [RFC] Propety Accessors v1.1

2012-10-09 Thread David Muir
e to happen in the constructor? class MyClass{ public $property { set($value){ if(!is_int($value)){ throw new InvalidArgumentException('value of wrong type'); } $this->__property = $value; } } public function __c

Re: [PHP-DEV] [RFC] Propety Accessors v1.1

2012-10-10 Thread David Muir
his->seconds = (int) $value;} } } class UsingConstructor { public $seconds { set($value) {$this->seconds = (int) $value;} } public function __construct(){ $this->seconds = 36000; } } I think I've got those all right... Cheers, David -- PHP Internals

Re: [PHP-DEV] [PHP-DEV [RFC] Property Accessors v1.2 : Interfaces

2012-10-15 Thread David Muir
ssor are the same thing. Interfaces are about contracts between an implementation and a consumer, so the actual implementation is irrelevant. What matters is how the implementation is accessed by the consumer. If it is via property syntax, then it *is* a property, even though the actual implement

Re: [PHP-DEV] [PHP-DEV [RFC] Property Accessors v1.2 : Interfaces

2012-10-15 Thread David Muir
On 16/10/12 14:55, Jazzer Dane wrote: I'm going to agree with David here. It is most sensible to either allow properties AND accessors in interfaces, or don't allow either of them. __get/__set is a different subject that I'd rather not dig into while discussing this RFC.

Re: [PHP-DEV] [PHP-DEV [RFC] Property Accessors v1.2 : Interfaces

2012-10-16 Thread David Muir
On 16/10/12 22:34, Clint Priest wrote: -Original Message- From: Stas Malyshev [mailto:smalys...@sugarcrm.com] Sent: Tuesday, October 16, 2012 6:06 AM To: Clint Priest Cc: Nikita Popov (nikita@gmail.com); internals@lists.php.net Subject: Re: [PHP-DEV] [PHP-DEV [RFC] Property Accessor

[PHP-DEV] [RFC] Socket activation support for PHP-FPM

2012-10-18 Thread David Strauss
The full RFC, including initial patches, is here: https://wiki.php.net/rfc/socketactivation In short, this allows spawning a PHP-FPM pool on-demand with systemd initializing the main socket. -- David Strauss | da...@davidstrauss.net -- PHP Internals - PHP Runtime Development Mailing List

Re: [PHP-DEV] [RFC] Socket activation support for PHP-FPM

2012-10-18 Thread David Strauss
be in the container, something else needs to listen on its behalf. Finally, it's a platform consistency issue. As more services move to socket activation in Fedora and Red Hat, socket units will become a sort of "common currency" for configuring which services listen where. -- David S

Re: [PHP-DEV] [RFC] Socket activation support for PHP-FPM

2012-10-18 Thread David Muir
On 19/10/12 07:41, David Strauss wrote: > The full RFC, including initial patches, is here: > https://wiki.php.net/rfc/socketactivation > > In short, this allows spawning a PHP-FPM pool on-demand with systemd > initializing the main socket. > Upstart support would be good to ha

Re: [PHP-DEV] [RFC] Socket activation support for PHP-FPM

2012-10-18 Thread David Strauss
On Thu, Oct 18, 2012 at 4:06 PM, David Muir wrote: > Upstart support would be good to have too. I'm aware of Upstart having some basic socket activation support, and I'm happy to provide advice on the PHP-FPM/Linux side for integrating it in follow-up work. All socket activation ba

Re: [PHP-DEV] [RFC] Socket activation support for PHP-FPM

2012-10-18 Thread David Strauss
nstances you don't actually want to share across pools anyway. That's certainly the case. I'll update the RFC. -- David Strauss | da...@davidstrauss.net -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [RFC] Property Accessors v1.2 : isset / unset "failable"

2012-10-28 Thread David Muir
to control application logic. The above example should not give a warning, and should return false. As far as an application is concerned, $o->b doesn't exist because it can't be read. David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] RFC: ext/mysql deprecation

2012-11-15 Thread David Muir
'll have to step up and maintain it themselves. The point is, an extension should never be throwing deprecation warnings for a planned migration to PECL. Cheers, David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] RFC: ext/mysql deprecation

2012-11-20 Thread David Muir
tutorials such as at http://www.w3schools.com updated to a much more modern format? There was a concerted campaign to get w3schools updated, but as far as I know, it's fallen on deaf ears. And it's not just their PHP info that's outdated. See w3fools.com Cheers, David

Re: [PHP-DEV] RFC: ext/mysql deprecation

2012-11-20 Thread David Muir
urrent state of affairs. Thoughts? Adam Has 2(c) been even suggested? I take at that 2(b) is for those advocating "Move to PECL with no E_DEPRECATED notices being thrown"? Cheers, David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] RFC: ext/mysql deprecation

2012-11-20 Thread David Muir
On 21/11/12 16:08, Adam Harvey wrote: On 21 November 2012 13:03, David Muir wrote: On 21/11/12 15:47, Adam Harvey wrote: 2. If we decide not to generate E_DEPRECATED notices in PHP 5.5, what should the next course of action be: (a) Enhance the manual text to make the soft deprecation

Re: [PHP-DEV] ext/mysql in PECL and E_DEPRECATED

2012-11-28 Thread David Muir
PECL - If the mysql functions are not already registered, register them with the bundled code. - Set mysql_extension_triggers_deprecated_warning = 0; 4) That's it. Then people (distros, hosts, etc) will just install it from PECL instead to avoid all the E_DEPRECATED mess. David -

Re: [PHP-DEV] ext/mysql in PECL and E_DEPRECATED

2012-11-28 Thread David Muir
. IMHO there shouldn't be a vote on E_DEPRECATED without including future removal plans. Cheers, David On Thursday, November 29, 2012 07:00 AM, David Muir wrote: On 29/11/12 05:09, Ángel González wrote: I see it as simple to show E_DEPRECATED but not when installed from PECL. 1) Add a i

Re: [PHP-DEV] Re: [VOTE] ext/mysql deprecation in 5.5

2012-11-28 Thread David Muir
ered as of 5.3 due to their continued use of magic_quotes_gpc and magic_quotes_runtime. When Drupal 8 was released some time later, the code was fixed so that it no longer used those out-dated functions. That's why I voted yes. --Kris Kris, There was no "ext/magic_quotes" that was re

Re: [PHP-DEV] ext/mysql in PECL and E_DEPRECATED

2012-11-29 Thread David Muir
atibility must be kept (userland) o ABI and API can be broken (internals), src compatibility should be kept if possible, while breakages are allowed [emphasis mine] Some are saying that that E_DEPRECATED can/should be used for entire extensions. That's fine and dandy if said extension is actually going to be removed (not just retired to PECL, but dropped completely), but somehow I think a lot more people would object to the current RFC if that were the plan. Cheers, David

Re: [PHP-DEV] DateTime improvement

2012-12-10 Thread David Muir
e DateTime class could actually be changed to inherit the ImmutableDateTime class. The only extensions on the DateTime class would be the mutable methods. Would love to see ImmutableDateTime! David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Extension for str_replace / preg_replace with arrays

2012-12-20 Thread David Muir
d()){ $value = $iterator->current(); (foreach block) $iterator->next(); } So that might explain why it works in "(simple) scripts". It does seem like a bug that the rewind is required though. A newly created iterator should already be in a rewound state so th

Re: [PHP-DEV] New operator for htmlspecialchars

2013-01-15 Thread David Muir
makes the code harder to read. Cheers, David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Questioning the future of PHP

2013-02-03 Thread David Muir
We still don't have a way to auto load non class entities. Other than that, PSR-0 does solve the majority of autoload use cases. Cheers, David Sent from my iPhone On 04/02/2013, at 5:18 PM, Larry Garfield wrote: > On 02/03/2013 08:51 PM, Matt Wilson wrote: >> Hello all. I'

Re: [PHP-DEV] Re: [RFC] Allow trailing comma in function call argument lists

2013-02-20 Thread David Muir
time Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > The one place I would find this to be super handy would be when specifying arguments to sprintf(), and other variable argument functions. Cheers, David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [RFC] Short syntax for anonymous functions

2013-02-21 Thread David Muir
s->OrderBy( function( $x ){ return $x->Surname; } ); > > Short: > $users->OrderBy( $x ==> $x->Surname ); > > > > Lazare INEPOLOGLOU > Ingénieur Logiciel I think your example proves the opposite. The fist example was much easier to read and understand than

Re: [PHP-DEV] [VOTE] Integrating Zend Optimizer+ into the PHP distribution

2013-02-28 Thread David Muir
r years, and I'm glad they're gone. But the legacy software I have to maintain was written assuming they were available and on. It will take a *very* long time to fix and update all that code to run on 5.4. Cheers, David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Include XDebug and Suhosin Patch in Core for 5.5

2013-03-01 Thread David Muir
I use it because it's included by default on Ubuntu... Didn't know about the huge performance impact. Their website seems to imply that PHP has security holes that have never been patched, and are only closed by using Suhosin. I find that hard to believe. Is PHP really *that* vulnerable without it? The site (http://www.hardened-php.net/suhosin/) is somewhat light on details. Cheers, David

Re: [PHP-DEV] PHP User Survey

2013-03-05 Thread David Muir
ess, Gallery, etc) requires it You should add: When my distro/hosting company upgrades. Cheers, David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] __invokeStatic() method

2013-03-18 Thread David Muir
} >>>>> } >>>>> >>>>> A()->m(); >>>>> >>>>> >>>>> === Conclusion === >>>>> This feature makes the __invoke() method consistent with the __call() >> and >>>>> __callStatic() methods, >>>>> and opens the door to many cool stuff. >>>>> >>>>> Any feedback is appreciated. >>>>> >>>>> Daniele Orlando >>>> >>>> I don't really see a use case for this, as you can already use the >> syntax >>>> A::method(); >>>> >>>> E.G class A { public static function invoke() { return new A; } >>>> >>>> public function m() { echo 'Runned'; } >>>> >>>> A::invoke()->m(); >>>> >>>> Your example above only saves a few characters to type and can lead to >> a >>>> lot of problems if you have a function with the same name as the class. >>> >>> Using A::invoke(), you need to know the name of "invoke()" and it's >>> hard to force users always to use the invoke() function. >>> Using A() would be more clean since all the static init(), factory(), >>> invoke(), getInstance() are gone. >>> Having __call(), __callStatic(), __invoke() and invokeStatic() would >>> make the overloading concept more consistent. >>> >>> Regards, >>> Thomas >>> >>> -- >>> PHP Internals - PHP Runtime Development Mailing List >>> To unsubscribe, visit: http://www.php.net/unsub.php >> >> Using A() looks too much like a function call. And there is still the issue >> with having a function name the same as the class name. >> This works well in languages like JavaScript where functions are objects. As much as I like the feature there, I'm not sure it's a great fit for PHP. David Sent from my iPhone -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Continuous Integration Atomic Deploys and PHP 5.5

2013-03-24 Thread David Muir
cluded/required by the realpath? You mentioned that O+ does not use inodes as cache keys like APC, but what does it use instead? Just the file path? Cheers, David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: [lists.php] Re: [PHP-DEV] a couple of thoughts on the DateTime type debate

2013-04-05 Thread David Muir
uot;autoclone class Color {...", and >> not the new name struct -> it would be clear that struct/classes use >> the same namespace. >> You maybe even could do "autoclone class DateTimeImmutable extends >> DateTime {}" to create the immutable versi

Re: [PHP-DEV] [RFC] Class instances counter

2013-04-08 Thread David Muir
re. Isn't that what a debugger is for? Cheers, David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Functionality updates to array_column()

2013-04-22 Thread David Muir
beta was a feature freeze. Is it not? First Beta is slated for tomorrow, isn't it? David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Functionality updates to array_column()

2013-04-22 Thread David Muir
On 23/04/13 14:50, David Muir wrote: On 23/04/13 07:35, Sherif Ramadan wrote: On Mon, Apr 22, 2013 at 1:35 PM, Ben Ramsey wrote: I've just submitted the following pull request for updates to the array_column() function: https://github.com/php/php-**src/pull/331<https://github.com

[PHP-DEV] Interest in a "null" SAPI for embedding?

2013-08-16 Thread J David
Hello, We recently successfully embedded PHP into our application using an approach based on the embed SAPI. However, our application is large and complex, written entirely in C++, requires a bit more functionality than the embed SAPI offers. (As an example, however, it was invaluable.) So we ne

Re: [PHP-DEV] Interest in a "null" SAPI for embedding?

2013-08-17 Thread J David
On Fri, Aug 16, 2013 at 5:28 PM, Sara Golemon wrote: > Ah, I see. I wasn't taking "null" quite literally enough. :) > > That sounds pretty awesome to me. Assuming the implementation looks good > you'd get my vote. "Implementation" might be a little generous… it's a config.m4 file, a header file

Re: [PHP-DEV] Interest in a "null" SAPI for embedding?

2013-08-17 Thread J David
To try it out, here's a hacky little Makefile you can use to build the CLI SAPI against the null shlib: http://pastebin.com/3FxWhZn4 Resulting in: $ ls -l phpn -rwxrwxr-x 1 me staff 113669 Aug 17 00:13 phpn $ ldd phpn phpn: libphp5.so => /usr/local/php/5.6-dev/lib/libphp5.so (0x2808) libc

Re: [PHP-DEV] Interest in a "null" SAPI for embedding?

2013-08-17 Thread J David
On Fri, Aug 16, 2013 at 12:55 PM, Johannes Schlüter wrote: > I was successful by using embedded SAPI for that and ignoring all things > from php_embed.[ch]. Sure this gives few extra symbols and a few bytes > of unneeded code but works fine. Yes, exactly. This is a cleaner/more formal way of doi

Re: [PHP-DEV] Interest in a "null" SAPI for embedding?

2013-08-17 Thread J David
On Fri, Aug 16, 2013 at 12:40 PM, Sara Golemon wrote: > Apart from managing lifecycles, the SAPI is also resposible for things like > directing I/O between the host application, how does null-sapi handle this? It doesn't. It provides no SAPI functionality at all (hence "null"). Its only purpose

Re: [PHP-DEV] Interest in a "null" SAPI for embedding?

2013-08-19 Thread J David
On Fri, Aug 16, 2013 at 9:15 PM, Sara Golemon wrote: > Right, gotcha. I think ideally someone should put in the grunt work to do > what you suggested: Build libphp5.so all the time, then link up > php/mod_php5.so/etc... against that as a shared system library (which in > turn other programs or SA

Re: [PHP-DEV] Interest in a "null" SAPI for embedding?

2013-08-19 Thread J David
On Mon, Aug 19, 2013 at 3:59 PM, Michael Wallner wrote: > I think it all was about to be as standalone as possible, e.g. you > could have a CLI with builtin readline/pcntl/whatelse extensions, > while mod_php could be kept lean of that and include an > opcache/whatelse instead. To stick with your

Re: [PHP-DEV] Interest in a "null" SAPI for embedding?

2013-08-19 Thread J David
On Mon, Aug 19, 2013 at 7:49 PM, Johannes Schlüter wrote: > Ah, there's another thing to mind: Extensions can be marked as "cli > extensions", if statically compiled they become only part of the CLI > binary, not other SAPIs. Think readline & pcntl. The logical expectation then would be not to in

Re: [PHP-DEV] Request #65501 uniqid(): More entropy parameter should be true by default

2013-08-22 Thread David Muir
ID module. > > Regards, > > -- > Yasuo Ohgaki > yohg...@ohgaki.net Well, there's this: http://pecl.php.net/package/uuid David

Re: [PHP-DEV] [RFC] Keywords as identifiers

2013-09-18 Thread David Neilsen
"missing any real-world examples of why it might be useful" One thing the I have run across in making my libraries, is the not being able to call a function `default`. I use the chainable getter/setter in one syntax a lot (a la jQuery). Hence when I have a class with a property named default, and

Re: [PHP-DEV] [RFC] Keywords as identifiers

2013-09-18 Thread David Neilsen
*Should have been !== null On Wed, Sep 18, 2013 at 7:27 PM, David Neilsen wrote: > "missing any real-world examples of why it might be useful" > > One thing the I have run across in making my libraries, is the not being > able to call a function `default`. > > I use

Re: [PHP-DEV] RFC: Type hinting revisited for PHP 5.3

2009-07-03 Thread David Coallier
esn't have (unicode) casting yet :) I think that's nitpicking I agree and I just want to make sure that this doesn't become a documentation issue for people who'd think you can hint using unicode or even see article saying you can hint with unicode. Makes sense for PHP6 tho

Re: [PHP-DEV] weak and strict type checking RFC

2009-07-04 Thread David Zülke
On 04.07.2009, at 14:27, Derick Rethans wrote: So I would propose to: 1. have ilia's strict typing patch (minus scalar and numeric) 2. have a patch that also adds for casting type hints from your RFC. Those could (and should) be considered as *two* new features. As for syntax, I believe the

Re: [PHP-DEV] Type hinting/casting request for vote

2009-07-07 Thread David Coallier
+1 -- Slan, David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Soap over SSL and

2009-07-10 Thread David Zülke
related to certs, including for CA certs etc. SoapClient itself has an option for a 'local_cert' as well. - David smime.p7s Description: S/MIME cryptographic signature

Re: [PHP-DEV] Soap over SSL and

2009-07-10 Thread David Zülke
.comp.php.devel/53763 - David smime.p7s Description: S/MIME cryptographic signature

[PHP-DEV] Patch for Bug #

2009-07-15 Thread David Zülke
Hi there, attached are patches for http://bugs.php.net/48929. Big kudos to Tjerk Anne and Arnaud, this forking HTTP server stuff for testing the stream wrapper is genius. - David Index: ext/standard/tests/http/bug48929.phpt

Re: [PHP-DEV] Patch for Bug #

2009-07-20 Thread David Zülke
On 20.07.2009, at 12:42, Jani Taskinen wrote: On 07/15/2009 08:49 PM, David Zülke wrote: Hi there, attached are patches for http://bugs.php.net/48929. Big kudos to Tjerk Anne and Arnaud, this forking HTTP server stuff for testing the stream wrapper is genius. Ehem..was this ever

[PHP-DEV] Fwd: [SOAP] SOAPClient authentication problem

2009-07-24 Thread David Zülke
This sounds like a serious issue, but I'm not sure if it's in libxml or in ext/soap. Will have a look later; but maybe Dmitry or someone else knows off the top of their heads? - David Begin forwarded message: From: Davide Romanini Date: 30. Juni 2009 11:49:30 MESZ To: s...@lis

[PHP-DEV] Re: [SOAP] SOAPClient authentication problem

2009-07-24 Thread David Zülke
Can do, but I wanted to figure out a way to create a reproduce case first (I already have an idea). - David On 24.07.2009, at 12:20, Dmitry Stogov wrote: Hi David, Please report a bug on bugs.php.net (assign it to dmitry). I'll look into it later. Thanks. Dmitry. David Zülke

[PHP-DEV] Re: [SOAP] SOAPClient authentication problem

2009-07-24 Thread David Zülke
On 24.07.2009, at 12:45, Davide Romanini wrote: David Zülke ha scritto: Can do, but I wanted to figure out a way to create a reproduce case first (I already have an idea). - David On 24.07.2009, at 12:20, Dmitry Stogov wrote: Hi David, Please report a bug on bugs.php.net (assign it to

[PHP-DEV] Re: SOAP_MARSHAL_DATETIME (or: bug #44383)

2009-07-28 Thread David Zülke
*bump* Dmitry, did you have a chance to review this patch yet? - David On 22.06.2009, at 15:21, David Zülke wrote: Hi folks, attached is a patch (with the respective test cases) that implements DateTime marshalling from and to xsd:dateTime in ext/soap as requested in http

Re: [PHP-DEV] Re: SOAP_MARSHAL_DATETIME (or: bug #44383)

2009-07-28 Thread David Zülke
On 28.07.2009, at 13:32, Dmitry Stogov wrote: Hi David, I took only a quick look, but I like the patch. In case it doesn't break any tests, it should be committed at least into HEAD. I agree to commit it into 5.3 too, but RMs take the final decision. The only thing I didn't

Re: [PHP-DEV] Supporting ArrayObject in array_* functions

2009-07-30 Thread David Coallier
s a marvelous idea :) I'm attaching Travis Swicegood to this as he had cooked a very simple but effective patch for that at #tek09 -- Slan, David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: [SOAP] SOAPClient authentication problem

2009-08-03 Thread David Zülke
On 24.07.2009, at 12:48, David Zülke wrote: Yes, thanks, I realize that, but I need to test it in a .phpt unit test, which is a bit trickier. But as I said, I already have an idea. Will do it this later and open a ticket. Issue: http://bugs.php.net/49144 .phpt: http://pastie.org/569897

[PHP-DEV] Re: [SOAP] SOAPClient authentication problem

2009-08-03 Thread David Zülke
On 24.07.2009, at 12:48, David Zülke wrote: Yes, thanks, I realize that, but I need to test it in a .phpt unit test, which is a bit trickier. But as I said, I already have an idea. Will do it this later and open a ticket. Issue: http://bugs.php.net/49144 .phpt: http://pastie.org/569897

[PHP-DEV] Re: [SOAP] SOAPClient authentication problem

2009-08-03 Thread David Zülke
On 24.07.2009, at 12:48, David Zülke wrote: Yes, thanks, I realize that, but I need to test it in a .phpt unit test, which is a bit trickier. But as I said, I already have an idea. Will do it this later and open a ticket. I finally got around to writing a test case and opening a ticket

Re: [PHP-DEV] Re: [PHP] "PHP 6 and MySQL 5 for Dynamic Web Sites" Book

2009-08-07 Thread David Coallier
ich is what the book now needs re-writing to support? This doesn't belong on internals. Please use php-general or if this is where it was originally posted, keep it there. Thanks, -- Slan, David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: SOAP_MARSHAL_DATETIME (or: bug #44383)

2009-08-07 Thread David Zülke
On 28.07.2009, at 19:14, Jani Taskinen wrote: Dmitry Stogov wrote: David Zülke wrote: On 28.07.2009, at 13:32, Dmitry Stogov wrote: Hi David, I took only a quick look, but I like the patch. In case it doesn't break any tests, it should be committed at least into HEAD. I agree to c

Re: [PHP-DEV] Re: SOAP_MARSHAL_DATETIME (or: bug #44383)

2009-08-07 Thread David Zülke
On 28.07.2009, at 19:14, Jani Taskinen wrote: Dmitry Stogov wrote: David Zülke wrote: On 28.07.2009, at 13:32, Dmitry Stogov wrote: Hi David, I took only a quick look, but I like the patch. In case it doesn't break any tests, it should be committed at least into HEAD. I agree to c

Re: [PHP-DEV] Re: SOAP_MARSHAL_DATETIME (or: bug #44383)

2009-08-07 Thread David Zülke
On 28.07.2009, at 19:14, Jani Taskinen wrote: Dmitry Stogov wrote: David Zülke wrote: On 28.07.2009, at 13:32, Dmitry Stogov wrote: Hi David, I took only a quick look, but I like the patch. In case it doesn't break any tests, it should be committed at least into HEAD. I agree to c

Re: [PHP-DEV] Re: SOAP_MARSHAL_DATETIME (or: bug #44383)

2009-08-07 Thread David Zülke
On 28.07.2009, at 19:14, Jani Taskinen wrote: Dmitry Stogov wrote: David Zülke wrote: On 28.07.2009, at 13:32, Dmitry Stogov wrote: Hi David, I took only a quick look, but I like the patch. In case it doesn't break any tests, it should be committed at least into HEAD. I agree to c

Re: [PHP-DEV] Bug #49325 Error in domdocument->schemaValidate

2009-10-05 Thread David Zülke
On 05.10.2009, at 18:11, Israel Ekpo wrote: This was actually not a bug with the PHP code. The error was in the instance XML document. I just closed the bug. That should probably be closed as "bogus", not "closed". - David smime.p7s Description: S/MIME cryptographic signature

Re: [PHP-DEV] Regarding constructions like func()[0]

2009-11-09 Thread David Zülke
It's already on the list for PHP6: http://wiki.php.net/summits/pdmnotesmay09 (see Day 2, PHP 6, #13). No need to discuss this further, I think. You might also want to have that bug closed, it's redundant. - David On 07.11.2009, at 12:42, melfar wrote: Hello! I have f

Re: [PHP-DEV] Bug 44383 in ext/soap

2010-03-31 Thread David Zülke
On 25.03.2010, at 22:05, Michael Maclean wrote: Currently, DateTime objects aren't properly mapped to and from xsd:datetime objects when sending them via ext/soap. David Zülke wrote a patch to fix this, and filed it under bug 44383, and mailed the list with it - http://article.gman

[PHP-DEV] Mysql completing Query fast but mysql->query() takes long time to return even single selects/updates

2010-04-07 Thread David Murphy
| 0 | 0 | Thanks David Murphy

Re: [PHP-DEV] TODO List

2010-05-13 Thread David Zülke
http://thread.gmane.org/gmane.comp.php.devel/60563 and http://thread.gmane.org/gmane.comp.php.devel/57369 ;) On 12.05.2010, at 22:23, Mathias Grimm wrote: > What is the correct todo list ? > I want to help us but a need to see the todo list to select my work! > > Any sugestion to start? > > -

Re: [PHP-DEV] SVN Account Request: jespino (Try 2)

2010-06-11 Thread David Coallier
(EFnet). > > Stuff takes time, especially during conference season :) > > Be sure to read read the mailinglist rules too: > http://no.php.net/reST/php-src/README.MAILINGLIST_RULES > > -Hannes > -- David Coallier -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Static initialization block support in Class?

2010-08-17 Thread David Zülke
e > you can't use expressions, and you can use the define method, where you can > use expressions. > and you can combine them: > > define("NOW", time()); > var_dump(NOW); > const BAR = NOW; > var_dump(BAR); > class baz{ > const BAR = NOW; > } >

Re: [PHP-DEV] [PATCH] #52563: Adding E_NONE and/or E_EVERYTHING constants

2010-08-25 Thread David Zülke
. > Oops. That doesn't work as I expect it to! That's because you're doing it wrong: error_reporting(E_NONE | E_ERROR); - David smime.p7s Description: S/MIME cryptographic signature

Re: [PHP-DEV] RFC: Making T_FUNCTION optional in method declarations

2010-11-28 Thread David Otton
2010/11/27 Johannes Schlüter : > Without T_FUNCTION token. In my opinion an access modifier /public, > private protected, static, final) should still be required for keeping > readability. As a plea on behalf of maintenance coders dealing with large, messy codebases, please, please don't impact o

Re: [PHP-DEV] RFC: Making T_FUNCTION optional in method declarations

2010-11-28 Thread David Otton
2010/11/28 Dallas Gutauckis : > I understand the concern from above, but I don't agree with it > fundamentally. The kind of practice suggested by this search mechanic tells > me that either there is lack of or little documentation, and lack of or > little understanding of the codebase in which the

Re: [PHP-DEV] Traits and Properties

2011-01-02 Thread David Muir
nflicts in a similar fashion? I can't remember if it's already been suggested and and maybe shot down already. It would probably get horrendously messy, but figured I'd mention it anyway. Cheers, David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [citations for] Re: [PHP-DEV] Experiments with a threading library for Zend: spawning a new executor

2011-01-20 Thread David Muir
en/reserved.classes.php 'parent' also works as a method name for the same reason. 'static' does not work, as it's a keyword. Cheers, David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Make set_time_limit() timeout a catchable fatal error

2011-03-08 Thread David Muir
AIL! Oh noes, something went wrong!'; // do whatever else you need to do before quitting } }); Cheers, David On 08/03/11 22:39, Pierre Joye wrote: > hi, > > is not the goal of this setting to prevent that a script runs longer > than a given time? A catchable error will pr

Re: [PHP-DEV] Make set_time_limit() timeout a catchable fatal error

2011-03-09 Thread David Muir
Hmm, I think I worded that poorly. A function registered with register_shutdown_function does execute when the max_execution_time is exceeded. What it doesn't let you do is to recover in the same way an error handler would let you. David On 09/03/11 22:56, Hannes Landeholm wrote: >

[PHP-DEV] Implicit isset/isempty check on short-ternary operator

2011-03-31 Thread David Coallier
d wiki rfc: http://webcache.googleusercontent.com/search?q=cache:jKrV2u7jeokJ:wiki.php.net/rfc/ifsetor+php+ifsetor+patch&cd=1&hl=en&ct=clnk&gl=us&client=firefox-a&source=www.google.com -- David Coallier -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Implicit isset/isempty check on short-ternary operator

2011-04-13 Thread David Muir
Sorry Ben, but I think extending the @ operator to prevent errors from being generated in the first place is a terrible idea. I would prefer to see @ removed from PHP if possible. I like Rune's proposal, although I'd prefer ?= for the assignment operator instead of ??= I would also want this to work with objects and scalars. It would be particularly useful within view scripts where the values are passed in via extract, or as object properties, and you can't instantiate them first because that would clear them. Cheers, David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] [PATCH] Allow loading of arbitrary resource bundles when fallback is disabled.

2011-04-15 Thread David Zülke
ut I wanted to run it by Hans-Peter and Stas again in case they want to discuss this. David smime.p7s Description: S/MIME cryptographic signature

Re: [PHP-DEV] RFC: built-in web server in CLI.

2011-04-19 Thread David Muir
I'm not sure if this is needed when there are already solutions for this. eg, syslog, error_log, or other userland solutions like Zend_Log, sfLogger, etc. Cheers, David On 19/04/11 23:44, Michael Morris wrote: > Pardon me for following up my own post, but there is room for a range of >

Re: [PHP-DEV] Implicit isset/isempty check on short-ternary operator

2011-04-20 Thread David Muir
;], $defaults['foo'], > 42) for years, and I think that style is far more in keeping with the > PHP ethos, and far more readily understandable than this suggested new > syntax. > > If I've missed some argument against this then please correct me. > > Regards, > &

Re: [PHP-DEV] Call non-static method staticly raise E_STRICT, but why call a static method instancely won't

2011-04-25 Thread David Muir
7;s a > pretty compelling reason, though. It's hard to know how to phase it out > "non-invasively", too. > > Ben. > > Why not just deprecate it, and throw a E_STRICT warning? That's how we're dealing with all other future BC breaks. David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Making SimpleXML more useful

2011-04-26 Thread David Zülke
t more stupid than simple, but that's my personal opinion). I guess that's why it, by default, inherits the parent namespace. David On 27.04.2011, at 01:23, Tom Samplonius wrote: > > It is not possible to use SimpleXML to add a child element without a > namespace prefix

Re: [PHP-DEV] Making SimpleXML more useful

2011-04-30 Thread David Zülke
method you use. Again, xmlns="" puts an element in no namespace. That already works in SimpleXML. There is no issue here that needs fixing. David smime.p7s Description: S/MIME cryptographic signature

Re: [PHP-DEV] Making SimpleXML more useful

2011-04-30 Thread David Zülke
refix (that is *not* what elementFormDefault in an XML is for), and it's not necessary, because the prefix doesn't matter. The reason why namespace prefixes exist is that they make things more readable for humans, and they decrease the file size. David smime.p7s Description: S/MIME cryptographic signature

Re: [PHP-DEV] Porting PECL to userspace

2011-05-21 Thread David Muir
ourselves if someone > else already is. There's a Drupal extension that does something like this, but in reverse: http://drupal.org/project/drupal_php_ext Cheers, David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] RFC: Short syntax for Arrays (redux)

2011-06-01 Thread David Zülke
discussion. Getting back to the RFC: I think it's problematic to have two separate syntaxes for the key/value separator. For consistency's sake, I'd rather just have "=>" but not ":". Just my $0.02. David On 02.06.2011, at 00:09, John Crenshaw wrote: &

Re: [PHP-DEV] RFC: Short syntax for Arrays (redux)

2011-06-01 Thread David Zülke
UTF-8. What if I do this, in a latin1 encoded file: $x = {foo: "ä", bar: "\u0123"} Should that then give mixed encodings? The "ä" in foo in latin1 and the stuff in bar in UTF-8? And what if I do: $x = {foo: "ä\u0123"} I'll either end up with an inval

Re: [PHP-DEV] Final version, RFC release process

2011-06-02 Thread David Muir
e LTS release lifetime is similar to the current y release (x.y.z) then maybe it won't be so bad as it would grant earlier and stable access to new features for those who have control over their php installs, while retain a more long term supported release that hosts would be happy with. Cheers, David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] RFC: Short syntax for Arrays (redux)

2011-06-02 Thread David Coallier
r I'm willing to make a compromise and move forward rather than stalling. Consider this my official +1 for [key => value] -- David Coallier -- David Coallier -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] RFC: Short syntax for Arrays (redux)

2011-06-02 Thread David Zülke
;} Should that then give mixed encodings? The "ä" in foo in latin1 and the stuff in bar in UTF-8? And what if I do: $x = {foo: "ä\u0123"} I'll either end up with an invalid UTF-8 sequence, or with latin1 character soup. David On 02.06.2011, at 18:04, Martin Scott

Re: [PHP-DEV] RFC: Short syntax for Arrays (redux)

2011-06-03 Thread David Zülke
roblem is now? If someone does this in a latin1-encoded file: Then that is valid as a PHP array (as it's a latin1 "ä", so \xE4), but cannot be consumed by PHP's json_decode(). And that would be terribly inconsistent behavior. David On 02.06.2011, at 22:15, Andrei Zmievs

Re: [PHP-DEV] DOMNode::getAttribute()

2011-06-03 Thread David Zülke
n the node. Yes, but that's in line with the W3C DOM spec! David smime.p7s Description: S/MIME cryptographic signature

Re: [PHP-DEV] RFC: Short syntax for Arrays (redux)

2011-06-04 Thread David Zülke
parser, which might then struggle depending on the encoding of the file. David P.S. I guess that also answers Andrei's question regarding whether or not I understood what a parser was or w/e :) On 04.06.2011, at 02:43, John Crenshaw wrote: > This is a moot point. You wouldn't s

Re: [PHP-DEV] JSON array/object syntax

2011-06-04 Thread David Zülke
ere it would be interchangeable with JS code or be evaluated as JSON by other JSON parsers) - namely the problem that you could produce *PHP code*, that, with some mingling and stripping, *PHP's own json_decode() could not process*. Perhaps I should have made that more clear, sorry. David On

<    1   2   3   4   5   6   7   8   9   10   >