Hi Bryan,
On Thu, Sep 19, 2013 at 9:29 PM, Bryan C. Geraghty wrote:
> -Original Message-
> From: tjerk.meest...@gmail.com [mailto:tjerk.meest...@gmail.com] On Behalf
> Of Tjerk Anne Meesters
> Sent: Thursday, September 19, 2013 4:01 AM
>
> > My point is that you ne
On Thu, Sep 19, 2013 at 2:02 PM, Pierre Joye wrote:
>
> On Sep 18, 2013 6:07 PM, "Tjerk Anne Meesters" wrote:
> >
> > On Thu, Sep 19, 2013 at 8:33 AM, Ángel González
> wrote:
> >
> > > On 16/09/13 15:58, Daniel Lowrey wrote:
> > >
>
On Thu, Sep 19, 2013 at 8:33 AM, Ángel González wrote:
> On 16/09/13 15:58, Daniel Lowrey wrote:
>
>> More generally, PHP's stream encryption aspects are quite poorly
>> documented. For example, https:// streams disable peer verification by
>> default. While I understand that this is necessary to
On Tue, Aug 13, 2013 at 6:15 PM, Matthieu Napoli wrote:
> array_unique() is perfect for removing duplicates in a string array, but
> not so great for an array of objects.
>
> SORT_REGULAR was added to compare items without casting them to string.
> However it uses the "==" comparison operator.
>
On Sat, Jul 20, 2013 at 1:32 AM, Arpad Ray wrote:
> On Fri, Jul 19, 2013 at 6:28 PM, Daniel Lowrey wrote:
>
> > While it works, it somewhat obscures what you're trying to accomplish in
> > the code. The maintainability nightmare alone may be enough to
> > counterbalance any benefits. Then again,
On Fri, Jun 28, 2013 at 12:38 PM, Kris Craig wrote:
>
>
> On Thu, Jun 27, 2013 at 9:20 PM, Kris Craig wrote:
>
>>
>>
>> On Thu, Jun 27, 2013 at 7:54 PM, Tjerk Anne Meesters wrote:
>>
>>>
>>>
>>>
>>> On Thu, Jun 27, 2013
On Thu, Jun 27, 2013 at 4:42 PM, Kris Craig wrote:
> On Thu, Jun 27, 2013 at 12:03 AM, Yasuo Ohgaki wrote:
>
> >
> > 2013/6/27 Kris Craig
> >
> >> I just noticed that htmlspecialchars_decode doesn't convert entities
> like
> >>
and
.
> >>
> >
> > I think htmlspecialchars_decode() only decode
On Fri, Jun 28, 2013 at 1:36 AM, Pierre du Plessis
wrote:
> On Thu, Jun 27, 2013 at 7:29 PM, Tjerk Anne Meesters wrote:
>
>> On Fri, Jun 28, 2013 at 1:13 AM, Pierre du Plessis
>> wrote:
>>
>> > On Thu, Jun 27, 2013 at 6:14 PM, Johannes Schlüter
>> > wrot
On Fri, Jun 28, 2013 at 1:13 AM, Pierre du Plessis
wrote:
> On Thu, Jun 27, 2013 at 6:14 PM, Johannes Schlüter
> wrote:
>
> > On Thu, 2013-06-27 at 16:58 +0200, Nikita Popov wrote:
> > > On Thu, Jun 27, 2013 at 4:10 PM, Christian Stoller > >wrote:
> > >
> > > > The new syntax could make it shorte
On Thu, Jun 27, 2013 at 8:42 PM, Florin Patan wrote:
> Hello,
>
>
> I'd like to start working on a bug,
> https://bugs.php.net/bug.php?id=52355 but I'm not sure where to start
> investigating exactly.
>
First of all, the effort is much appreciated :)
I've run a small test case and it seems the
On Thu, Jun 27, 2013 at 7:13 PM, Richard Bradley <
richard.brad...@softwire.com> wrote:
> > -Original Message-
> > From: tjerk.meest...@gmail.com [mailto:tjerk.meest...@gmail.com] On
> Behalf Of Tjerk Anne Meesters
> > Sent: 27 June 2013 11:24
> > To: Seb
On Thu, Jun 27, 2013 at 5:43 PM, Sebastian Krebs wrote:
>
>
>
> 2013/6/27 Tjerk Anne Meesters
>
>> On Thu, Jun 27, 2013 at 4:27 PM, Florin Patan
>> wrote:
>>
>> > On Thu, Jun 27, 2013 at 10:17 AM, Tjerk Anne Meesters > >
>> > wrot
On Thu, Jun 27, 2013 at 4:27 PM, Florin Patan wrote:
> On Thu, Jun 27, 2013 at 10:17 AM, Tjerk Anne Meesters
> wrote:
> > On Wed, Jun 26, 2013 at 11:20 PM, Jeremy Curcio
> wrote:
> >
> >> Hello,
> >>
> >> I would like to submit an RFC to
On Wed, Jun 26, 2013 at 11:20 PM, Jeremy Curcio wrote:
> Hello,
>
> I would like to submit an RFC to add a new function to the PHP language.
> The function would be called "map()". The purpose of this function would be
> to take an existing value within a range and make it to a corresponding
> lo
On Tue, Jun 18, 2013 at 11:07 PM, Sherif Ramadan wrote:
> On Tue, Jun 18, 2013 at 10:58 AM, Levi Morrison >wrote:
>
> >
> > I'm starting up a thread for discussion on Pull Request 287
> >> https://github.com/php/php-src/pull/287 (allowing array keys to be
> passed
> >> to the callback function of
On Thu, Feb 21, 2013 at 5:31 PM, Leigh wrote:
>
> On 21 February 2013 07:08, Tjerk Anne Meesters wrote:
>
>> Hi,
>>
>> I found myself wanting a feature of array_filter() with which I can
>> perform
>> filtering based on the array key instead of the valu
#x27;m not sure about either of those counter arguments, but I added them for
anyone else to pick up :)
On Thu, Feb 21, 2013 at 4:02 PM, Sebastian Krebs wrote:
>
>
>
> 2013/2/21 Tjerk Anne Meesters
>
>> Hi,
>>
>> I found myself wanting a feature of array_filter
Hi,
I found myself wanting a feature of array_filter() with which I can perform
filtering based on the array key instead of the value.
To scratch this itch, I decided to dive into C again and just add the
feature. My proposal is to add a third argument to array_filter() that will
send the array k
Hi,
I've forked out an interesting project on Github that implements XXHash and
extended it to work with the hash() function family. Project links below.
The integration is pretty straightforward, but the following code had me
concerned:
PHP_HASH_API void PHP_XXH32Update(PHP_XXH32_CTX *context,
Hi,
On Tue, Dec 18, 2012 at 6:03 AM, Stas Malyshev wrote:
> Hi!
>
> > Basically the method allows you to do delegate error handling to the
> > coroutine, rather than doing it yourself (as you are not always able to
> do
> > it). It is particularly useful in more complicated settings, e.g. if you
ecrement the skip length (if non-zero) by at most bytes before performing the search. This will make sure any
buffered characters are taken into consideration (again).
On Tue, Oct 9, 2012 at 4:33 PM, Sherif Ramadan wrote:
> On Tue, Oct 9, 2012 at 12:59 AM, Tjerk Anne Meesters
> wrote:
>
On Tue, Oct 9, 2012 at 12:14 AM, Nicolai Scheer wrote:
> Hi!
>
> We switched from php 5.3.10 to 5.3.17 this weekend and stumbled upon a
> behaviour of stream_get_line that is most likely a bug and breaks a
> lot of our file processing code.
>
> The issue seems to have been introduced from 5.3.10 t
On Tue, Sep 4, 2012 at 6:31 PM, David Zülke wrote:
> On 03.09.2012, at 09:37, Jannik Zschiesche wrote:
>
> > The main problem arises from the ambiguity for $array[-1] for arrays.
> > But this is easily solvable: just introduce a slice operator.
> >
> > $array[:-1] and the ambiguity is gone.
>
> T
On Tue, Aug 21, 2012 at 10:31 AM, Rasmus Schultz wrote:
> Thank you, but this isn't really anything like what I had in mind.
>
> What I had in mind is more like set-semantics for arrays, e.g. designed to
> work with sets of distinct values/objects.
>
> Since I do not have permission to write on t
> Resume is similar to return, but can only be used in catch blocks or
> in error handling functions. When encountered the run time returns to
> the line after the exception was initially thrown and, well,
> "resumes".
Interesting idea. Just by reading that I thought of this scenario instead:
--
On Fri, Jun 15, 2012 at 8:56 AM, Hartmut Holzgraefe
wrote:
> Too late to raise this now anyway, but ...
>
> On 13.05.2012 04:39, Stas Malyshev wrote:
>> I know this was discussed a number of times here, but just to bring it
>> to a conclusion - I intend to apply patch in the bug report - which
>>
> On 05/07/2012 05:32 AM, Tjerk Anne Meesters wrote:
>
>> Validated or not, why would type juggling even come into the picture
>> if both variables are of the same type?
>
> For the simple reason that web forms return all input as strings, even
> if the input is a
>
> I agree with Rasmus (and others) on this one
> (http://www.mail-archive.com/internals@lists.php.net/msg57949.html), type
> numeric conversion on strings on both sides should only happen if both
> strings can be represented as numbers without losing data/precision.
> if one or both of the two si
On Sun, May 6, 2012 at 12:17 AM, Richard Lynch wrote:
>> What exactly valid points? == is a converting operator, === is a
>> strict
>> operator. OK, in his favorite language it is not. Where exactly the
>> valid point is? Author goes at great lengths to refuse to make even a
>> slight mental effor
On Sun, Mar 18, 2012 at 8:12 AM, Stas Malyshev wrote:
> Obvious solution would be to use a salt for the hash, which prevents blind
> pre-computing of hash collisions. However, due to the fact that PHP hash
> values can be reused in different processes by bytecode caches, implementing
> it properly
On Thu, Mar 15, 2012 at 6:01 PM, Ryan McCue wrote:
>>> That's probably going to confuse people if it doesn't change the HTTP
>>> request parsing limit too, IMHO. And I'm not sure that's something we
>>> necessarily want.
>>
>>
>> Err, how you can change it after HTTP request has already been parse
>> As mentioned on IRC, a function signature of "array
>> parse_urlencoded(string $s)" would be useful too; the separated logic
>> would allow for avoiding max_input_vars altogether and not having to
>> worry about parameter name mangling (variable name rules). The nasty
>> part is that much of the
On Thu, Mar 15, 2012 at 7:38 AM, Rasmus Lerdorf wrote:
>
> Yes, it would need a zend_alter_ini_entry_ex() call there. The patch
> wasn't complete, just a quick hack. But it would still have an
> out-of-context error message when you exceed it. At least with a
> userspace ini_set() the error would
On Fri, Mar 9, 2012 at 10:58 AM, Ilia Alshanetsky wrote:
> Anthony,
>
> My concern with this type of patch is that what you are proposing are
> not really hints, they are forced casts. As such they modify the data
> potentially leading to data loss.
>
But at least it's consistent with "array" and
On Wed, Feb 29, 2012 at 7:08 AM, Michael Morris wrote:
> Agreed. If conversion can occur without data loss (that is, if the
> value being assigned is == the value that actually IS assigned) then
> no error should occur.
>
> So
>
> int $a = "1"; // no error. 1 == "1" so who cares?
> int $a = 'Hou
Hi,
First off, it would've been better to contact one of the project members
rather than the internals list :)
To answer your question though, I'm assuming that you're accessing a secure
http url, which requires openssl iirc.
Please address any replies to me directly and/or ja...@php.net
Thanks
Hi,
Doesn't substr_compare() accomplish the same thing since 5.1.0?
The only thing I couldn't figure out is how to make it case
insensitive without specifying an explicit value to $length
Best,
Tjerk
On Mon, Aug 15, 2011 at 11:18 AM, Laruence wrote:
> Hi:
> compare to use substr, strncm
On Wed, Jun 1, 2011 at 6:04 AM, Gustavo Lopes wrote:
> On Tue, 31 May 2011 22:41:36 +0100, Hannes Landeholm
> wrote:
>
>>> Agree with Derick, strictly speaking, in maths science, INF != INF.
>>
>> I disagree,based on quote from
>> http://compilers.iecc.com/comparch/article/98-07-134:
>>
>> "Since
On Wed, Aug 25, 2010 at 2:22 PM, Lester Caine wrote:
> Johannes Schlüter wrote:
>>
>> On Tue, 2010-08-24 at 18:49 +0800, Adam Harvey wrote:
>>>
>>> Johannes has pointed out on IRC that E_NONE does already exist in some
>>> projects, so that's an argument against it.
>>
>> Yeah, I did a quick code
2010/8/19 Johannes Schlüter :
> On Thu, 2010-08-19 at 01:13 -0700, Stas Malyshev wrote:
>> Hi!
>>
>> > I was under the impression that, in order for inheritance to provide
>> > proper polymorphism, overridden methods should share the parent's method
>> > signature, although they can have additional
All "fpm" workers would be called using the same function name (e.g.
"runphp"). This allows you to reuse a gearmand instance for other
workers too.
The advantages of fpm vs gearman would be mostly performance (it uses
ping and requires an underlying layer on top of tcp/ip), followed by
dynamic spa
On Wed, Jun 2, 2010 at 7:41 AM, Chad Fulton wrote:
> Hi!
>
>> Pretty much everywhere. Suppose you have form with, say, 2 fields and first
>> field does not validate. Maybe you want to check the second field too and
>> give the user both errors if they are both wrong?
>>
>> In general, looking at s
Having seen both options, I would vote neither for the following reasons:
With strict "hinting", give it about a year when some major frameworks
would have adopted this, and not just for the functions that would
actually require it; they would go all the way in the name of
consistency. When that h
On Mon, May 24, 2010 at 2:12 PM, Brian Moon wrote:
> Because that is, IMO, a bad precedent to start for PHP internal functions.
> Too many functions already produce warnings (fopen) and return a status that
> can be checked. The solution right now is @ and that has so much baggage
> with it that y
On Wed, May 19, 2010 at 7:04 PM, Richard Quadling
wrote:
> On 19 May 2010 11:21, Tjerk Anne Meesters wrote:
>> On Wed, May 19, 2010 at 5:52 PM, Frederic Hardy
>> wrote:
>>> Hello !
>>>>
>>>> AFAIK class constants are optimized for speed and theref
On Wed, May 19, 2010 at 5:52 PM, Frederic Hardy
wrote:
> Hello !
>>
>> AFAIK class constants are optimized for speed and therefore don't
>> support expressions; don't expect this to change any time soon ;-)
>>
>>> Is there any feature request about constant and expression ?
>>> I would like to wri
AFAIK class constants are optimized for speed and therefore don't
support expressions; don't expect this to change any time soon ;-)
On Wed, May 19, 2010 at 4:54 PM, Frederic Hardy
wrote:
> Hello !
>
> Is there any feature request about constant and expression ?
> I would like to write something
Normally, PHP won't allow access types for interface methods, but the
reflection for SPL is defined inside the C code:
static const zend_function_entry spl_funcs_OuterIterator[] = {
SPL_ABSTRACT_ME(OuterIterator, getInnerIterator,
arginfo_recursive_it_void)
{NULL, NULL, NULL}
};
I
On Tue, May 18, 2010 at 10:19 AM, Davey Shafik wrote:
> The least disruptive change would be to have it as the last arg, and default
> to the current all-null value.
>
> Perhaps you could do this and add a warning akin to the date.timezone if none
> is passed?
>
> Having said that, I don't think
On Mon, May 3, 2010 at 11:42 PM, Christian Schneider
wrote:
> mathieu.suen wrote:
>> May be it could be interesting to have a syntax for returning from the
>> define scope.
>> For example.
>>
>> $findedElment = $myList->selectIfAbsent($fooo, function(){
>> return 'No item founded'; //Retrun fr
Think it's also important to keep the IDE factor in mind. By just
defining a catch-all at the end of your function declarations you
essentially cut short any effort that could be made to have IDE code
insight support for this language enhancement.
On 4/13/10, Jordi Boggiano wrote:
> On 13.04.2010
In the case whereby names parameters are "plucked" from the argument
list and passed as a hash to the function it really shouldn't matter
whether that's invalid in python; both (2, 'name' => 'test') and
('name' => 'test', 2) would yield the same results, albeit it's a
highly dubious way of passing
On Thu, Dec 24, 2009 at 9:28 AM, Michael Shadle wrote:
> On Wed, Dec 23, 2009 at 5:12 PM, Mikko Koppanen wrote:
>> Hi,
>>
>> I think this is the feature (in trunk currently):
>>
>> http://svn.php.net/viewvc?view=revision&revision=28287
>
> This is not the same, this is just an additional way to s
Maybe to make it respond to SIGHUP signals? Not exactly sure whether
that would constitute as user_abort though.
On 12/23/09, Rasmus Lerdorf wrote:
> Can anyone think of a situation where you actually want our current
> ignore_user_abort=false setting for the cli sapi?
>
> -Rasmus
>
> --
> PHP In
Hi,
Maybe I don't exactly understand the need for closureProperty(); also,
I haven't read the rfc ;-)
My understanding would be that you can treat it as a callable object, like so:
$a = function($msg) { echo $this->id, ": ", $msg, " [ calls: ",
++$this->calls, "]";
}
$a->id = 123;
$a("hello wor
The only two things that would come up after reading Jani's email is:
1) Make the log string configurable, such as CustomLog in apache
2) Configure the log level threshold, though I think that should
already be there in the first place.
On 12/15/09, Antony Dovgal wrote:
> On 15.12.2009 12:30, Jan
Hi,
ini files can be split, so it doesn't all have to be inside one
monolithic php.ini
I agree that repetition doesn't look nice; it would be nice to have
something like:
[fpm.worker.worker1]
listen = 127.0.0.1:1900
uid = webservice
Etc.
Didn't really pay attention to those pool settings, but
Just out of curiosity, is there any open source bug tracker out there
that would lend itself well to these needs? Currently the bug tracker
is highly customized so when thinking about adding those new features,
it may also be a good time to look around ;-)
On 12/8/09, Lukas Kahwe Smith wrote:
>
>
I suggest you set up multiple instances of FastCGI instead and let
your web server choose the right CGI gateway per request.
On 8/26/09, Chris Trahey wrote:
> Attempting to load 2 PHP modules in the same httpd instance.
> modified mod_php5.c, php_apache.h, php.sym and sapi_apache2.c
> to reflect
Hi,
Expanding on this.
In a typical project I always try to make my own code very clean by
letting it run on a staging environment with all error reporting
enabled for a while before living it; so keeping the error_reporting
enabled on the live server (and sending a daily log of caught errors)
wo
Well, if you're doing speed comparisons why not just compile both
mysqlnd and mysql(i) as static? ;-)
On 8/18/09, Remi Collet wrote:
> Hi,
>
> Building 5.3.1 snapshot with options
> --with-mysql=shared,mysqlnd
> --with-mysqli=shared,mysqlnd
> --with-pdo-mysql=shared,mysqlnd
>
>
17/09, Tjerk Anne Meesters wrote:
> Since I'll be out most of today, I'll just post the patch first; it'd
> be great if it could also be applied to the 5_2 branch of course, but
> that's not my call ;-)
>
> As for compatibility, by default the patch would not change
Best,
Tjerk
On Sun, May 17, 2009 at 8:42 AM, Tjerk Anne Meesters wrote:
> But ignore_errors is not used in 5.2 right? ;-) I also have a patch
> for that actually if you're interested =D
>
> On 5/17/09, Arnaud Le Blanc wrote:
>> Yes, the fix requires "ignore_errors
ream wrappers =D
>> >>
>> >> This can't be the first time that this has been a point of discussion;
>> >> my apologies if this has been outright rejected before ;-)
>> >>
>> >> On 5/16/09, Arnaud Le Blanc wrote:
>> >>>
gt;
> Arnaud
>
>
>>
>>
>> Ilia Alshanetsky
>>
>>
>>
>>
>> On 15-May-09, at 11:36 AM, Tjerk Anne Meesters wrote:
>>
>> > Hi Arnaud,
>> >
>> > Thanks for the tip, please find patch attached.
>> >
>> >
>>
Hi Arnaud,
Thanks for the tip, please find patch attached.
Best,
Tjerk
On Fri, May 15, 2009 at 10:58 PM, Arnaud Le Blanc wrote:
> Hi,
>
> On Fri, 2009-05-15 at 22:16 +0800, Tjerk Anne Meesters wrote:
>> Hi,
>>
>> I've been extending the pecl/oauth code to wor
Hi Arnaud,
Thanks for the tip, please find patch attached.
Best,
Tjerk
On Fri, May 15, 2009 at 10:58 PM, Arnaud Le Blanc wrote:
> Hi,
>
> On Fri, 2009-05-15 at 22:16 +0800, Tjerk Anne Meesters wrote:
>> Hi,
>>
>> I've been extending the pecl/oauth code to wor
Hi,
I've been extending the pecl/oauth code to work with php stream
wrappers in cases whereby curl is not enabled, but I've hit a snag.
The documentation states that enabling the "ignore_errors" flag will
fetch the content even on failure status codes. At the same time,
setting "max_redirects" to
68 matches
Mail list logo