On Thu, 4 Jul 2024 at 07:32, Rob Landers wrote:
>
> My main feedback to PSR’s is that they are fundamentally broken due to
> being outdated. The idea behind the standards is sound, but there are only
> a few PSRs that are applicable to today’s PHP. When I look at creating new
> libraries today, P
Having array_value_first and array_value_last to match the existing
array_key_first and array_key_last functions make sense, and would seem to
me to be more intuitive than function names that would not match that
scheme.
On Tue, 17 Oct 2023 at 10:41, Robert Landers
wrote:
> On Tue, Oct 17, 2023
On Tue, Nov 26, 2019 at 10:53 AM Ian Littman wrote:
> What do y'all think about getting this into PHP 8?
>
So long as the default behavior is to leave it available, I'm okay with
this. Any app
that relies on twig/twig, phpunit/phpunit, many symfony packages,
dompdf/dompdf,
etc relies on being ab
On Sun, Nov 17, 2019 at 9:42 AM Aimeos | Norbert Sendetzky <
norb...@aimeos.com> wrote:
> Since PHP 7.1 there's the "iterable" pseudo type hint that matches
> "array" and "Traversable".
>
> PHP frameworks would profit from support of an "arrayable" pseudo type
> hint that matches "array" and all o
made me think about this, and I enjoyed it.
I will continue to look for something I can cut my teeth on as a first-time
contribution to php core.
- Ken Stanley
This got rejected for being too large???
On Thu, Oct 24, 2019 at 10:05 PM Ken Stanley wrote:
> Now we’re talking. :-)
>
> This example is better indeed.
>> But here I would prefer to have the ?-> operator proposed earlier
>> (nullsafe calls).
>>
>>
On Thu, Oct 24, 2019 at 8:54 PM Mike Schinkel wrote:
> On Oct 24, 2019, at 6:49 PM, Ken Stanley wrote:
> I would be keen to see the more expressive techniques that retain the
> succinctness of having a not-null coalescing operator.
>
>
>
> When I read your first example, I
On Thu, Oct 24, 2019 at 6:01 PM Mark Randall wrote:
> On 24/10/2019 22:52, Ken Stanley wrote:
> > I'm more interested in having a negation operator for the null-coalescing
> > operator, especially since cognatively it should be easy to discern what
> it
> > does.
On Thu, Oct 24, 2019 at 5:31 PM Kosit Supanyo
wrote:
> Hi Bruce
>
> If I understand correctly.
>
> $_SERVER['fname'] !?? $user->setName($_SERVER['fname']);
>
>
> Will return the result of $user->setName($_SERVER['fname']) if
> $_SERVER['fname'] is set or null if not set. While:
>
> isset($_SERV
On Thu, Oct 24, 2019 at 5:19 PM Kosit Supanyo
wrote:
> Hi Ken
>
> I totally agree with Andreas especially:
>
> One purpose of the operator should be that you don't have to repeat
>> the variable. Here you do, e.g. $_SERVER['fname']
>
>
> But if thi
On Thu, Oct 24, 2019 at 4:29 PM Andreas Hennings
wrote:
> On Thu, 24 Oct 2019 at 20:59, Ken Stanley wrote:
> >
> > On Thu, Oct 24, 2019 at 1:33 PM Dan Ackroyd
> wrote:
> >
> > > On Thu, 24 Oct 2019 at 18:21, Ken Stanley wrote:
> > > >
> > &g
On Thu, Oct 24, 2019 at 1:33 PM Dan Ackroyd wrote:
> On Thu, 24 Oct 2019 at 18:21, Ken Stanley wrote:
> >
> > Since PHP 7.0 brought forward the Null Coalescing Operator (??), writing
> > more succinct code for how to handle null values has been a blessing.
> But,
> &g
On Thu, Oct 24, 2019 at 1:46 PM Stephen Reay
wrote:
> Hi Ken,
>
> This sounds like an alternative approach (for solving the same basic
> problem) to the nullsafe operator discussed a while back, no?
> https://wiki.php.net/rfc/nullsafe_calls
>
>
> Cheers
> Stephen
>
n SQL. And, as they say, naming is hard. If
`anti-coalescing-operator` does not sit well with you all, I am open to
naming suggestions.
Thank you for your time,
Ken Stanley
I am referring to the SQLite version that is bundled in PDO-SQLite in
PHP 5.2. That is the one I have been using in my PHP builds.
I am suggesting that the version numbers reported by the VERSION file
and the phpinfo() function are misleading.
- Ken
On Thu, May 6, 2010 at 12:43 PM, Pierre Joye
3.3.17" was a typo.
http://svn.php.net/viewvc/php/php-src/branches/PHP_5_2/ext/pdo_sqlite/sqlite/
These version number discrepancies were a real "gotcha" when I was
trying to pinpoint an obscure locking problem in SQLite 3.3.x. What
version number should phpinfo() really report f
On Dec 11, 2007 6:13 PM, Gregory Beaver <[EMAIL PROTECTED]> wrote:
> The example above shows that imported names are reset at each namespace
> declaration. There is no prohibition on this code:
>
> namespace one; {
> use Blah::A;
> // code
> }
> namespace two; {
> use Foo::A;
> // code
> }
> ?>
I understand what you mean, but I was just trying to put a real-world face
on a so-far theoretical problem. But that does raise an interesting point;
we can already use braces anywhere and everywhere, and while we could easily
wrap namespaces in anonymous braces like you describe, why not just go t
In regards to the braces or no braces question, I have a scenario that I
would like to share that could be considered similar in nature. We use a
cluster of databases where I work, and to make things easier on us, we have
a method called setSource() to switch between the clusters in our database
cl
Holy wow. That was fantastic! Not to downplay anything that Stas and the
other developers have done -- because let's face it, they've done a
fantastic job themselves -- you have definitely risen above and beyond the
call of duty and really come up with some very compelling counter-arguments.
This r
On Dec 5, 2007 3:03 PM, Stanislav Malyshev <[EMAIL PROTECTED]> wrote:
>
> What I'm frustrated with is not questions and arguments, but the same
> misconceptions about namespaces repeated over and over after it was
> explained multiple times it is just not what namespaces are and how they
> are supp
On Dec 5, 2007 12:54 PM, Stanislav Malyshev <[EMAIL PROTECTED]> wrote:
> (I don't know how to make it more clear - should I
> use blinking text, flash graphics and pictures of dancing girls/boys in
> bikinis?)
Stas, that is immature, rude, and completely uncalled for; fine, you are
frustrated wi
As a developer and member of the community, the following is my two-cents on
the subject:
On Dec 4, 2007 5:16 PM, Derick Rethans <[EMAIL PROTECTED]> wrote:
> 1. As it is impossible to do "use XXX as NativeClass" we get to the
> point where we'd have to namespace new internal native classes
>
at
least be told where to go to fix their mistake?
I am only asking to this list because I would hate to submit a ticket that
is just going to be closed. :)
On Nov 23, 2007 1:09 PM, Antony Dovgal <[EMAIL PROTECTED]> wrote:
> On 22.11.2007 06:12, Ken Stanley wrote:
> > I have
&
I completely agree with what you and Alexy suggest. I've since refactored my
code accordingly so that an exception would not be thrown while inside of an
exception. But, that does not answer my original question. I asked about
submitting a feature request that would simply provide more information
Hello,
I have done my best to look through both the internals archive and the bug
database, however I feel that I may have missed something; hence this
e-mail. I am working on a project that uses set_exception_handler() so that
I can attempt to display a uniform error page, perform logging, etc, o
FWIW, I think this is a great feature. Forgive my lack of intimate knowledge
with the core and extension, but would this be possible as an extension to
PHP? i.e., xdebug modifies how certain internals of PHP work through the
zend_extension_ts ini setting.
On 10/15/07, Hans Moog <[EMAIL PROTECTED]>
appy to supply it as much as I am able. I would also like to thank you for
taking the time to read -- and hopefully reply -- to this post.
- Ken
--
It looked like something resembling white marble, which was
probably what it was: something resembling white marble.
-- Douglas Ada
That's right. And that's exactly why it's such a bad idea to call it
static::. It's the scope resolution operator which already makes them
static, not their name. (I'm sorry for catching you on your words ;) )
I agree that it is not the best name, just not as bad as some of the others.
:)
Tha
First of all, thank you to everybody who has responded to my (silly)
questions; you have made this subject a lot more understandable. :)
static:: seems weird because it implies otherkeyword:: is not static.
I think the point that was made from the other posters was that child:: was
way too conf
On 5/26/07, Mike Lively <[EMAIL PROTECTED]> wrote:
It appears that all you are suggesting that is different from what has
been discussed previously is purely syntactical. In that regard I would
have to say that while neither this:: or static:: are jaw-droppers,
child:: seems somewhar counter-int
the above example shows a good situation for the parent class
to be able to see the child class.
Regardless of the direction taken with this issue, I would like thank all of
the developers who have made PHP so great. :)
- Ken
--
It looked like something resembling white marble, which was
probably w
I'm a developer for the Validate_IE pear class and would like to commit my own
changes to CVS on David Coallier's ( aka davidc ) recommendation.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
-- might help in the future. :D
Ken
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
On Wed, 4 Aug 2004, nsangineto wrote:
> Where can I apply for a PHP and also Java contract?
What's a PHP contract?
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
We can't see your attachment; the list server filters it out. Would you
put it on a web site?
Thanks,
Ken
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Would someone please set php-bugs at lists dot php dot net as a
"non-spammer"? I can't get any bugmail to my @php.net unless I turn off
spam filtering.
Thanks,
Ken Tossell
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
e.
Two letters: HA
But to answer your question based on current PHP, non-prefixed variables
would conflict with define()d constants, which appear as: $foo =
'abc'.bar;
Ken
ps: sorry, but... heh...
pps: don't use "foo $bar blah" -- use 'foo ' . $bar .
Hi Internals,
I've just committed a new documentation module for SimpleXML, which
should show up on php.net sometime. It's available at
http://php.kennyt.com/newdocs/?q=ref.simplexml -- if you see any major
errors (and there are some, I'm sure), please point them out
On Thu, 8 Jan 2004, dharana wrote:
> Hello Ken,
> I started using the php5 new dom extension like this:
> --
> asort(get_class_methods(new domDocument));
> foreach ($ar_methods as $method)
>echo $method.'';
> ?>
> --
Ahh, thanks -- and to another re
Hey Internals,
Would anyone be able to write, or point me to, some examples for using the
new DOM extension? I'm looking to do some documenting, but I need to know
how to use our implementation first.
Thanks,
Ken
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe,
I'd like to help document php5, as well as maintain the current php4-related tree.
derek at php dot net sent me to the cvs request page.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
ZE2
9. Does PHP include XML support by default?
a) yes b) no c) if the user specifies it
10. Which is not a PHP subproject?
a) PEAR b) PECK c) PECL
So you may be thinking that these questions are excessively obscure
okay. I
won't argue with that. Let's just get this up. 0:-)
K
iling list for this :-)
You're on the right list. If you don't get any more responses, it's just
because something's wrong with your idea. ;-)
Looks cool, though I've never touched ZE2 and, sadly, have no knowledge
of the parser...
Ken
- Chris
[patch]
--
PHP Internal
Your string assignments look wrong. For example, "\t" is a tab
character. Try your test cases with 'This is a test email. Testing
c:\test\foo.exe'; that should give you a proper string.
Ken
Jeremy Johnstone wrote:
I am not sure if this is a bug, but I have came across two
is tripled, in fact. :-P
I'd really like to be the last poster in this thread, simply because
it's gone into flame world, filling my mailbox when not invited. This'll
never change, at least in PHP proper, so please, don't fight about it...
Thanks,
Ken
On Saturday, Aug 30,
Olivier Hill wrote:
Kevin Waterson wrote:
How about including packaging for rpm and windows and any other
packaging system out there?
I think this would add too much.
AFAICS, the spec file for RPM is already on CVS:
http://cvs.php.net/annotate.php/php-src/php4.spec.in?login=2&rev=1.2
Or may
Justin Hannus wrote:
So it seems like to get the same functionality, in userland, why not just:
$_APPLICATION = &$_SESSION
Or
if (!isSet($_SESSION['myApplication'])) {
$_SESSION['myApplication'] = array();
}
$_APPLICATION =& $_SESSION['myApplication'];
-Justin
"Davey" <[EMAIL PROTECTED]>
tere wrote:
para aprender a usarlo
You don't need a CVS account to learn PHP. It's only useful if you're
developing the language.
Ken
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
s the
function is only called from within a user defined function.
Ken
> Your code doesn't make much sense to me. This is your code, right?
>
> if(zend_hash_find(&EG(symbol_table), var, strlen(var)+1, (void
> **)&vars_data)!=FAILURE)
> {
> ZEND_SET
however is quite
inneficient, and I have replaced most of what it does with my C extension.
I have also tried using the zend_register_auto_global function, but this
appears to cause a great deal of unpredictable behaviour.
Cheers,
Ken
> Hi Ken,
>
> I'm fairly new to PHP extensi
ars_data);
}
but it seg faults upon second execution.
Can someone reccomend a more successful method of accomplishing this?
Chhers,
Ken
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
t want to
show your users the ugly messages from something like include -- if
([EMAIL PROTECTED] 'foo.php') die('Couldn\'t..');
Ken
http://strony.wp.pl/wp/wmeler/error_suppression.patch.txt
Regards,
Wojtek
--
PHP Internals - PHP Runtime Development Mailing List
T
http://php-mag.net/
> -
>
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Ken Tossell
ken at tossell dot ne
Quoting Yang Jianrong <[EMAIL PROTECTED]>:
> study
if you want to study php, there's no reason for a cvs account. :-)
ken
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Ken Tos
your/apxs
make
make install
apachectl restart (after configuring)
>
> I run apache 1.3 under debian woody.
>
> Thank you: Csabii
>
>
>
> > Btw, compiles and tests fine.
>
>
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsub
On Tue, 24 Jun 2003, Sterling Hughes wrote:
> On Tue, 2003-06-24 at 17:41, Andi Gutmans wrote:
> > Do we have documentation for the sqlite extension?
>
> yep... Not sure if its on php.net, but its written and committed. Used
> to be available at http://docs.php.net/, but that's having problems a
and that's something I'm disagreeing
> with.
Oh, sorry. I should have made myself clearer. I'm just against RPM being
*the* way to get packages from php.net. :-)
>
> Derick
>
>
--
Ken Tossell
ken at tossell dot net
http://www.kennyt.com/
washington, dc / gmt -4
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Roman Neuhauser wrote:
# [EMAIL PROTECTED] / 2003-06-18 19:39:22 -0400:
On Wed, 18 Jun 2003, Rasmus Lerdorf wrote:
On Thu, 19 Jun 2003, Marcus Börger wrote:
Why not using RPMs? Only windows is a problem, isn't it ?
Windows is the primary platform we need binaries for.
On Wed, 18 Jun 2003, Rasmus Lerdorf wrote:
> On Thu, 19 Jun 2003, Marcus Börger wrote:
> > Why not using RPMs? Only windows is a problem, isn't it ?
>
> Windows is the primary platform we need binaries for.
And many major Linux distributions do not support RPM...
--
Ken To
60 matches
Mail list logo