Hi
Is it possible for someone to take a look at this? Can i get some
feedback perhaps?
Br,
Thomas
"Thomas Gielfeldt" wrote:
> Hi
>
>
> Here's a patch that updates debug_backtrace() somewhat as requested in
> bug/feature-request: #34421
>
>
> The
> From: a...@ajf.me
> Date: Sun, 14 Sep 2014 00:30:40 +0100
> To: internals@lists.php.net
> Subject: [PHP-DEV] [VOTE][RFC] Scalar Type Hinting with Cast
>
> Good evening,
>
> I’ve given up on my plan B, so I’m putting this RFC, finally, to a vote.
>
> I would urge you to vote in favour. It is
Add a new extension for multi-language
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Managing the PEAR::HTML_QuickForm_Renderers for smarty.
I already have a pear website account with handle "ths": http://pear.php.net/user/ths
and listed as package maintainer (developer):
http://pear.php.net/package/HTML_QuickForm
--
PHP Internals - PHP Runtime Development Mailing List
To unsub
I think the consensus is not so far away.
As far as I understand the rules, it is possible to vote yes and put up a new
RFC to remove strict-declare after the voting ends?
Regards
Thomas
Andi Gutmans wrote on 06.02.2015 00:22:
> I have to say I’m pretty disappointed at the opening of the v
Hello PHP Internals!
I'd like to propose to make empty() a variadic, where if any arguments passed
in are considered empty, then false is returned - otherwise return true.
My reasoning for wanting this feature is as follows:1)It's a common scenario to
want to check multiple expressions for empty
Hi Kris,
> Date: Thu, 12 Feb 2015 11:21:40 -0800
> From: kris.cr...@gmail.com
> To: tp...@hotmail.co.uk
> CC: internals@lists.php.net
> Subject: Re: [PHP-DEV] [DISCUSSION] Make empty() a Variadic
>
> I'd say go ahead and draft an RFC with all the details of your proposed
> change, then we can dis
Hi,
> From: a...@ajf.me>
> * I assume Thomas actually meant “where if any arguments passed in are
> considered empty, then *true* is returned”, i.e. (empty($a) || empty($b) ||
> empty($c))
>
> Sorry for the confusion.
>
> I think the || behaviour is the most usef
Hi Reeze,
> From: re...@php.net
>
> For example: echo $a, $b, $c, & empty($a, $b, $c), they are treated equal,
>
> if the empty() means if any one of them is empty then result is TRUE, the
> advantage of it disappeared:
>
> if (empty($a, $b, $c)) {
> // you might want to check it again.
> if (e
Hi Francois,
> From: franc...@tekwire.net>
> May I suggest to extend your proposal to is_null() with the same logic ?
If we were to do the same with is_null(), then would it not be best to do it
with all the is_*() functions? I would be more than happy to cater for those
functions as well, thoug
Hi,
> Date: Fri, 13 Feb 2015 15:09:16 +0100
> From: sbj.ml.r...@gmail.com
>
> While I don't know how common such a usage is I'm certain that there
> is a use case for it. However, just modifying a subset of the is_*
> functions sounds like a bad idea. If such a change is applied it
> should be do
Hey Benoit,
> From: bensor...@neuf.fr
> Hi,
>
> I agree, this behaviour should be extended to all the is_* functions if
> possible.
>
I'm not sure we can do that for all of the is_* functions, since is_callable()
accepts up to three arguments rather than taking only a single argument like
t
rfile, $fileno parameter to be passed by reference
- No, Allow none of the parameter be a reference parameter
and closes in 2 weeks from now.
Thanks,
Thomas
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
it
somewhere.
So, thank you, PHP community. It has been a wonderful 2 years.
Goodbye.
--
Andrea Faulds
http://ajf.me/
Thank you for being a responsible software developer. Not many
developers are this forward and honest about their intentions/plans.
--
Thomas Hruska
CubicleSoft President
Hello Internals!
The following RFC aims to make empty() have a variable arity:
https://wiki.php.net/rfc/variadic_empty. This is a simple feature that enables
for a short-hand notation of checking multiple expressions for emptiness (which
is a pretty common thing to do).
I have avoided including
Hey Leigh,
> Hey Tom,
>
> Patch looks solid (basically the same as the isset logic with OR
> instead of AND). I think it's fairly sane to have this feature because
> it compliments isset functionality (although I dislike "empty"
> personally - consistency is nice)
>
> No RFC would be complete wi
Hey Markus,
> From the RFC:
> > This behaviour seems to be the most prevalent usage of multiple empty
> checks in a condition, therefore benefitting the most end users.
>
> Here I disagree.
>
> I would have assumed from the start that empty() would only return true
> if *all* of the ent
// Sorry, having email formatting problems still. Hopefully this one will be
more legible.
Hey Markus,
> From the RFC:
> > This behaviour seems to be the most prevalent usage of multiple empty
> checks in a condition, therefore benefitting the most end users.
>
> Here I disagree.
>
> I would hav
Hey Dan,
> Making it easier to write bad (imo) code does
> not seem a good reason for a change.
The point of this language feature isn't to promote or simplify the creation of
bad code. Developers can (and will) misuse any feature to write poor code.
The aim of this RFC is to enable developers
Hi internals.
I've made PR proposing a feature request: A new interface Sortable.
https://github.com/php/php-src/pull/1116
If possible, I would like to create and RFC describing this in more detail,
and perhaps get a voting on.
Thanks
Br,
Thomas Gielfeldt
#x27;pwd', 'db');
return parent::query($query, $resultmode);
}
}
// do sth for some time
$->query('...'); // triggers real_connect
$->query('...'); // connection is already established
I haven't tested this, so I'm only intending to present the
I'm not sure if json syntax is better than PHP here:
$object = (object)[
'property'=>$value,
'method'=>function(){...}
];
$object->property;
$object->method->__invoke();
S.A.N wrote on 24.02.2015 19:37:
> Would have been more useful, inline sintex like JSON:
>
> $object =
> {
>'propert
2015-02-24 17:36 GMT+01:00 Benjamin Eberlei :
> Hi,
>
> On Tue, Feb 24, 2015 at 5:17 PM, Thomas Gielfeldt
> wrote:
>
>> Hi internals.
>>
>> I've made PR proposing a feature request: A new interface Sortable.
>>
>> https://github.com/php/php-src/p
I think this is a huge bc break that will affect many applications. For example:
// test.php
error_reporting(E_ALL & ~E_NOTICE);
echo $_GET['value'];
curl http://.../test.php?value=foo // ok
curl http://.../test.php?value[0]=foo&value[1]=bar // application continues
with E_NOTICE
curl http://...
:
> On 24 February 2015 at 19:23, Thomas Bley wrote:
>> I think this is a huge bc break that will affect many applications. For
>> example:
>>
>> // test.php
>> error_reporting(E_ALL & ~E_NOTICE);
>> echo $_GET['value'];
>>
>> curl http
2015-02-24 20:49 GMT+01:00 Stanislav Malyshev :
> Hi!
>
> > I've made PR proposing a feature request: A new interface Sortable.
> >
> > https://github.com/php/php-src/pull/1116
> >
> > If possible, I would like to create and RFC describing this in more
> detail,
> > and perhaps get a voting on.
>
2015-02-24 17:36 GMT+01:00 Benjamin Eberlei :
> Hi,
>
> On Tue, Feb 24, 2015 at 5:17 PM, Thomas Gielfeldt
> wrote:
>
>> Hi internals.
>>
>> I've made PR proposing a feature request: A new interface Sortable.
>>
>> https://github.com/php/php-src/p
2015-02-25 11:31 GMT+01:00 Alexander Lisachenko :
>
> 2015-02-25 13:21 GMT+03:00 Thomas Gielfeldt :
>
>> I have some more proposals for how to implement this interface. Should we
>> create an RFC for purposes of discussion, or do you usually do this in the
>> m
2015-02-25 12:15 GMT+01:00 Alexander Lisachenko :
>
> 2015-02-25 13:37 GMT+03:00 Thomas Gielfeldt :
>
>> Yeah, but the "problem" with this, is that your class' sort method, you
>> have to implement all the possible permutations the flags can produce. Th
2015-02-24 17:36 GMT+01:00 Benjamin Eberlei :
> Hi,
>
> On Tue, Feb 24, 2015 at 5:17 PM, Thomas Gielfeldt
> wrote:
>
>> Hi internals.
>>
>> I've made PR proposing a feature request: A new interface Sortable.
>>
>> https://github.com/php/php-src/p
2015-02-24 17:36 GMT+01:00 Benjamin Eberlei :
> Hi,
>
> On Tue, Feb 24, 2015 at 5:17 PM, Thomas Gielfeldt
> wrote:
>
>> Hi internals.
>>
>> I've made PR proposing a feature request: A new interface Sortable.
>>
>> https://github.com/php/php-src/p
Hi all,
the rfc was declined:
- Allow $errstr parameter to be passed by reference: 3
- Allow $errno, $errstr, $errfile, $fileno parameter to be passed by reference:
1
- No, Allow none of the parameter be a reference parameter: 16
Regards
Thomas
Thomas Bley wrote on 13.02.2015 21:51:
> Hi
Hey Zeev,
> Another change being considered and not yet in the RFC is re-allowing
> leading and trailing spaces for numeric strings (sorry Paddy.)
I think that rejecting leading and trailing spaces for stringy ints is for the
best.
If I only want to accept an integer (in either int or string for
2015-02-24 17:17 GMT+01:00 Thomas Gielfeldt :
> Hi internals.
>
> I've made PR proposing a feature request: A new interface Sortable.
>
> https://github.com/php/php-src/pull/1116
>
> If possible, I would like to create and RFC describing this in more
> detail
2015-03-02 16:26 GMT+01:00 Rowan Collins :
> Rowan Collins wrote on 02/03/2015 10:52:
>
>> Thomas Gielfeldt wrote on 02/03/2015 07:43:
>>
>> 2015-02-24 17:17 GMT+01:00 Thomas Gielfeldt :
>>>
>>> Hi internals.
>>>>
>>>>
Hello PHP Internals!
I'd like to put the variadic empty() RFC to vote.
RFC: https://wiki.php.net/rfc/variadic_empty
Voting will finish in 14 days time on March 21st.
Thanks,
Tom
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit:
2015-03-04 10:41 GMT+01:00 Rowan Collins :
> On 4 March 2015 07:12:41 GMT, Thomas Gielfeldt
> wrote:
> >2015-03-02 16:26 GMT+01:00 Rowan Collins :
> >
> >> Rowan Collins wrote on 02/03/2015 10:52:
> >>
> >>> Thomas Gielfeldt wrote on 02/03/201
7;, $translateFormat);
return parent::createFromFormat($translateFormat, $time);
}
});
$date = $c::createFromFormat('foo', '2015-03-09');
Regards
Thomas
Philip Sturgeon wrote on 06.03.2015 20:14:
> Right, this here RFC has been drastically improved.
>
> https
Hey PHP Internals,
So there hasn't been much discussion on this RFC, and yet a lot of people have
voted -1 on it. This is a little disappointing because I'm not entirely sure why
people are against it - and no one seems to want to debate it either.
>From pre-RFC discussions, two main concerns wer
Hey Dan,
>> The falsy semantics of empty() means that inlining its behaviour to exactly
>> match
>> isset() isn't logical.
>
> The problem isn't so much that the behaviour doesn't match some other
> pattern in PHP; the problem is that the function doesn't do what its
> name says it does.
>
> "if
Hey Derick,
> IMO, because it's not obvious whether it is *all* empty, or *atleast
> one* empty. The same argument we had before, when we expanded isset() to
> be variadic. We had the same discussion then, resulting on keeping
> empty() as it is.
>
> One discussion 11 years ago:
> http://marc.info
to ask Zeev, Francois and Dmitry
to withdraw their rfc and open the door for finalizing php7, many people are
waiting for.
For 7.1 we all know how scalar type hints work in practice and know if we
should remove declare(strict...), add coercion rules or stay with the v0.5
behaviour.
Regards
Thomas
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
P :)
Regards
Thomas
Derick Rethans wrote on 15.03.2015 20:07:
> Rowan Collins schreef op 15 maart 2015 17:59:17
> GMT+00:00:
>>On 15/03/2015 14:19, Anthony Ferrara wrote:
>>> All,
>>>
>>> I ran some numbers on the current votes of the dual-mode vote right
Hey David,
> A library written in weak or strict mode will have no bearing on its public
> API.
Strictly speaking (pun intended), this is not true. A library can easily expose
a
facade that enforces a user of that library (who is in weak mode) to have to
write
in strict mode [1]. Once more, thi
Hey,
> This is a bug in the library. It declares strict mode but passes a value it
> does not know to be an integer to a method requiring an integer. It can
> be fixed by simply adding an int type declaration to the constructor or
> test method.
The second example is certainly a programmer error,
> No, your example would blow up regardless of the caller being in strict mode
> or weak mode.
That was the point in my hypothetical example - the library can decide
what mode it wants the user to use (strict or weak) if it wants to.
-Tom
--
PHP Internals -
Hey Pavel,
> how will these examples work btw?
>
> // a.php
> declare(strict_types=1);
> function foo($fn) {
> $fn("1");
> };
>
> // b.php
> require 'a.php';
> foo(function (int $a) { return $a * 2; });
Result: catchable fatal error
Reason: invocation context is in strict mode
> // c.php
> f
Hey Internals,
> I'd like to put the variadic empty() RFC to vote.
>
> RFC: https://wiki.php.net/rfc/variadic_empty
>
> Voting will finish in 14 days time on March 21st.
Voting has now ended with a 26:26 yes/no split. This means the RFC has
has been declined (namely surrounding the ambiguity of w
Hey,
> Imho TypeException may not be best name for
> it, as it's also thrown for non-type related error conditions, like
> mismatched argument count.
Would SignatureException be a more apt name for these error conditions?
-Tom
--
PHP Internals - PHP Runtime
Hey,
> I have a question: is there any reason to throw an exception from
> __toString, *other* than a non-recoverable error, which would denote that
> the object, which the __toString method is called on, does not have any
> meaningful string representation? Because if not, core implementation ful
ll get the advantages of opcode caching on a
> multiple virtual host environment. It would also be easier to setup.
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
with a separate directory you can use tmpfs which i
rn_var ] ] ] )
echo exec_bind('ls ?', [$someDir]);
Using exec_bind() means parameters are substituted in as (correctly) escaped
strings and the result is run with exec().
Those who want to secure their legacy code can use
"disable_functions=mysqli_query,exec" and change the occurrences of both
functions to the new bind functions.
If people still use echo exec_bind('ls '.$someDir), static code analysis can
find it, similar to unsafe includes.
Regards
Thomas
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
internal decision and won't really be a significant improvement over
other PHP functions - it'll just be one more confusing option to pick from.
As an aside, I recently developed a sufficient-for-most-needs CSPRNG in
pure PHP:
http://barebonescms.com/documentation/csprng/
--
Thomas Hru
ew as reference). Are these
now totally removed from PHP 5.4, or do they still show with deprecation
warnings?
Thoughts?
Thomas
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
a build flag be used, so
that you can choose security or speed depending on your
needs? If you do some:
#ifdef ENABLE_SLOWER_SUHOSIN_SECURITY
in the controversial parts, then I don't see how this
would be of trouble for anyone to have Suhosin included
in upstream PHP.
Cheers,
Thomas Goira
her Stefan or anyone else seem to be willing
to make the necessary efforts.
I've bring that up with Stefan, and yet didn't receive a reply from him on
this topic.
Thomas
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
wnloads for the
previously selected version and build type. This approach also affords
adding a "What do I do next?" section to be on the download page to get
the user started on the right path if they've never used the PHP
binaries or PHP before. Maybe also inject a short blurb
ut of crypt() or the lack of
input controls.
Other thoughts: mt_rand() does not qualify as random. If you need
random bytes, consider using CSPRNG
(http://barebonescms.com/documentation/csprng/).
--
Thomas Hruska
CubicleSoft President
Barebones CMS is a high-performance, open source
rious function pages.
--
Thomas Hruska
CubicleSoft President
Barebones CMS is a high-performance, open source content management
system for web developers operating in a team environment.
An open source CubicleSoft initiative.
Your choice of a MIT or LGPL license.
http://barebonescms.com/
--
le - but not in one php block. And that's easier to handle by coding
conventions in the team.)
Versioning could be a chance to evolve the language and not to mess with
existing code. BUT: I don't know if that's doable internally. And it's
probably a lot of work...
Regard
C somewhere near the beginning of the document.
Eh, what? "Switch them off"?
What on earth do you mean? "use noGenerators" and then break tons of
third-party code relying on it? Or do you think you're forced to use them?
I don't understand, sorry.
A feature's e
expenditures
into their cost models.
--
Thomas Hruska
CubicleSoft President
Barebones CMS is a high-performance, open source content management
system for web developers operating in a team environment.
An open source CubicleSoft initiative.
Your choice of a MIT or LGPL license.
http://bareb
I think that these functions could be helpful. Is there any reason we
shouldn't have this kind of functionality?
What do others think of these changes?
-Tom
On 4/22/05, Daniel J Cain Jr. <[EMAIL PROTECTED]> wrote:
>
> These changes in and of themselves will offer zero increased protection
Lukas Smith wrote:
FYI: SingletonFactory can be a pure static class.
yes it just doesnt work if you normally already use a factory ..because
then you cant do $name::factory();
call_user_func(array($name,"Factory")); ??
thomas
--
PHP Internals - PHP Runtime Development Mailing List
To u
le by other means on the selected
mailbox, the STATUS command SHOULD NOT be used on the
currently selected mailbox.
Maybe it should be added to the documentation to use only
the new imap_status_current() function for the current folder.
Please CC: comments, I'm not on the list.
Best regar
Hi,
attached patch backports PHP5's imap_getacl function to PHP4.
I also noticed a small typo in PHP5's mail_getacl() comment.
Please CC: comments.
Best regards,
Thomas Jarosch
diff -u -r php-5.0.4/ext/imap/php_imap.c php-5.0.4.typo/ext/imap/php_imap.c
--- php-5.0.4/ext/imap/php_imap
harassment;
that's just not human nature.
That said, I humbly ask we add allow_url_include to accompany
allow_url_fopen, since some desire only to disable the former. We got
what we wanted by patching the source, so do as you will. ^_^
--
Shaun M. ThomasINN Databas
versation many times. This is not a
debate, it is not a college speech class, there are no "points" to make.
Regardless of whether or not you like the answer, the answer is no.
Enjoy your vacation---I know we will. ;)
--
Shaun M. ThomasINN Database Administrator
Phone: (309)
I want to be able to contribute to the php core for the community. Whether it
be contributing to the documentation, developing extensions, or help to
maintain the php.net website I am interested!
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/u
I would like to help maintain the documentation and possibly php.net. I would
also be looking forward to actually develop php runtime and an official bundled
php extension possibly in the near future.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.
distributing a new package
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
from Litespeed for their own product.
Regards,
thomas
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
7;m not on the list.
Cheers,
Thomas
--- php-5.2.5/ext/imap/php_imap.c Fri Mar 28 13:28:28 2008
+++ php-5.2.5.new/ext/imap/php_imap.c Fri Mar 28 13:58:18 2008
@@ -153,6 +153,7 @@
PHP_FE(imap_get_quota, NULL)
PHP_FE(imap_get_quotaroot, NULL)
PHP_FE(imap_set_quota, NULL
Lester Caine wrote:
The backslash is not ideal, but I think we all need to get behind it
rather than complaining. The only other real alternative today is to
shelve namespaces altogether for the next release rather than putting
something in that is simply not practical to extend later?
I'd pref
x27;t like.
You just live with that or chouse another language. That's all.
2008/10/27 Thomas Lee <[EMAIL PROTECTED]>
Lester Caine wrote:
The backslash is not ideal, but I think we all need to get behind it
rather than complaining. The only other real alternative today is to shelv
Steph Fox wrote:
Hi Thomas,
Anyway, my point is that there may be other options. Such as putting
off a long-sought feature until it can be implemented properly.
OK, since you obviously didn't do any background reading before
posting to this list, let me direct you to the history b
David Grudl wrote:
But what is the purpose of namespaces? To give developers their own
separated space. And it is their responsibility to not use ambiguous
names. PHP has not problem with class Foo::Bar and namespace Foo::Bar,
but coding standards usually prohibits it.
+1 to that.
Cheers,
al kind of PHP binary
"php-daemon":
- php-daemon is an executable that restarts a given php script in a
loop
- php-daemon can be combined with apc/xcache to store the bytecode
Unfortunately I'm still to much a newbie to write this myself.
Thanks for your time reading th
ound it up.
Best regards,
--
Thomas Koch, http://www.koch.ro
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
http://wiki.debian.org/PHP/GitMigration
http://lists.alioth.debian.org/pipermail/pkg-php-maint/2009-April/005221.html
happy eastern! Thomas Koch
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Hi
Here's a patch that updates debug_backtrace() somewhat as requested in
bug/feature-request: #34421
The patch also adds 2 new builtin functions: get_scope() and is_static().
I hope this can be of use to someone and would like to contribute this patch.
Contents of patch:
-rw-r--r-- t
__toString() result will be passed to the underlying system, and there is no
unicode support yet. What I would prefer is calling overidden operators
before __toString() is called.
Am I wrong? Can anybody help me please?
Thanks,
Thomas
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
ra!
Why this is not in the core? And what is 'Plan A'? ;)
regards,
Thomas
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
e interested in that also
willing to ensure that gd remains useful to non-PHP developers?
--
Thomas Boutell
Boutell.Com, Inc.
http://www.boutell.com/
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
;s
a 2.0.35 release to be made, or sooner if it seems appropriate, I'll
make an announcement and direct folks to the appropriate PHP page.
--
Thomas Boutell
Boutell.Com, Inc.
http://www.boutell.com/
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
parent::__construct();
}
}
Is it possible to access $myArray in the parents constructor? Therefor I need
the zval* pointer of the child!
I do not want to pass it as an argument.
Thanks and regards,
Thomas
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
l->type == IS_ARRAY statement can protect the access.
regards,
Thomas
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Hi Yoav,
four chapters with example about writing extensions and SAPIs, useful as an
introduction:
http://www.amazon.com/gp/product/0672325616/
--
Thomas
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
API that gives it simplicity
approaching gd, especially when used from languages like PHP.
Also, the ImageMagick license appears to be GPL-compatible
and making-money-compatible:
http://www.imagemagick.org/script/license.php
So, at the expense of my own site traffic perhaps, why the outdated
gd
Pierre has addressed my concerns and I'm looking forward to great things
in gd 2.0.34.
--
Thomas Boutell
Boutell.Com, Inc.
http://www.boutell.com/
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I tried to overwrite the 'get_method' handler and it works fine, but would
need the same effect for static methods. I tried something but found no
proper way to by-pass the zend_std_get_static_method() in an extension.
Is there a solution for it?
Thomas
--
PHP Internals - P
eta-data anymore.
Also the performance drawback will get you a lot of angry users.
Wasn't that just some versions before when the serialization has gotten
a lot slower and created lots of problems?
thomas
Andrei Zmievski schrieb:
> I don't see a way we can make it work for all the cases.
ng" and
that should be explicitly mentioned in the docs/tutorials/blog posts/...
- I don't know if there is a downside for static code analysis. But
probably you even need defined return types for that.
Regards
Thomas
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Hi Dan,
On 07/17/2014 02:12 PM, Dan Ackroyd wrote:
Thomas Nunninger wrote:
- "scalar parameter casting" should just be a convenience for coding:
function foo( (int) $i, (string) $s )
{
}
is the same as:
function foo( $i, $s )
{
$i
Hello Andrea,
from userland perspective, I would prefer to open the Closure constructor
instead of adding new syntax:
$qux = new FooBar(3);
// $func = &FooBar::getStatic;
$func = new Closure(array('FooBar', 'getStatic'));
$func($qux); // 3
Regards
Thomas
Andrea Fauld
Hello Aaron,
you might look at:
https://github.com/adoy/PHP-FastCGI-Client/blob/master/src/Adoy/FastCGI/Client.php
see buildNvpair() and buildPacket().
and the specification:
http://www.fastcgi.com/devkit/doc/fcgi-spec.html
Regards,
Thomas
Aaron Lewis wrote on 09.08.2014 06:43:
>
think one year to get it right on both sides -
the spec and the implementation - is totally ok.)
Regards
Thomas
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
I think it would be great to have json encoded data from input body in
$_REQUEST, just like parameters from the request-uri or form-urlencoded data.
Regards,
Thomas
Park Framework wrote on 17.08.2014 02:33:
> Maybe, select the best API can community.
> The main thing that it was not a
Since we get JSON data, I would also consider $_JSON.
Regards
Thomas
Park Framework wrote on 17.08.2014 01:47:
> Variable $_PUT is already a popular name.
> Many for yourself already so it was called, at the bottom link.
> http://stackoverflow.com/search?q=PHP+%24_PUT
>
> But
Hello Andrea,
I find the rfc a bit difficult to understand:
e.g. is_float('1') gives false, but foo('1') with function foo(float $a){} is
ok.
Regards,
Thomas
Andrea Faulds wrote on 14.09.2014 01:30:
> Good evening,
>
> I’ve given up on my plan B, so I’m putting
1 - 100 of 490 matches
Mail list logo