Re: [PHP-DEV] Iteration III: Packages (was Re: [PHP-DEV] [Initial Feedback] PHP User Modules - An Adaptation of ES6 from JavaScript)

2024-07-04 Thread Ken Guest
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

Re: [PHP-DEV] Two new functions array_first() and array_last()

2023-10-17 Thread Ken Guest
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

Re: [PHP-DEV] Let's allow eval() to be turned off in PHP 8

2019-11-26 Thread Ken Stanley
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

Re: [PHP-DEV] Concept: "arrayable" pseudo type and \Arrayable interface

2019-11-17 Thread Ken Stanley
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

Re: [PHP-DEV] [RFC] anti-coalescing-operator

2019-10-30 Thread Ken Stanley
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

Re: [PHP-DEV] [RFC] anti-coalescing-operator

2019-10-24 Thread 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). >> >>

Re: [PHP-DEV] [RFC] anti-coalescing-operator

2019-10-24 Thread Ken Stanley
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

Re: [PHP-DEV] [RFC] anti-coalescing-operator

2019-10-24 Thread Ken Stanley
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.

Re: [PHP-DEV] [RFC] anti-coalescing-operator

2019-10-24 Thread Ken Stanley
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

Re: [PHP-DEV] [RFC] anti-coalescing-operator

2019-10-24 Thread Ken Stanley
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

Re: [PHP-DEV] [RFC] anti-coalescing-operator

2019-10-24 Thread Ken Stanley
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

Re: [PHP-DEV] [RFC] anti-coalescing-operator

2019-10-24 Thread Ken Stanley
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

Re: [PHP-DEV] [RFC] anti-coalescing-operator

2019-10-24 Thread Ken Stanley
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 >

[PHP-DEV] [RFC] anti-coalescing-operator

2019-10-24 Thread Ken Stanley
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

Re: [PHP-DEV] PDO-SQLite version

2010-05-06 Thread Ken Dreyer
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

[PHP-DEV] PDO-SQLite version

2010-05-06 Thread Ken Dreyer
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

Re: [PHP-DEV] namespace improvements to be committed very soon - final review

2007-12-11 Thread Ken Stanley
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 > } > ?>

Re: [PHP-DEV] Namespace

2007-12-07 Thread Ken Stanley
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

Re: [PHP-DEV] Namespace

2007-12-07 Thread Ken Stanley
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

Re: [PHP-DEV] A rebuttal to Re: RFC: Dropping Namespace

2007-12-06 Thread Ken Stanley
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

Re: [PHP-DEV] Namespace

2007-12-05 Thread Ken Stanley
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

Re: [PHP-DEV] Namespace

2007-12-05 Thread Ken Stanley
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

Re: [PHP-DEV] RFC: Dropping Namespace

2007-12-05 Thread Ken Stanley
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 >

Re: [PHP-DEV] Quick question before submitting a feature request...

2007-11-23 Thread Ken Stanley
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 &

Re: [PHP-DEV] Quick question before submitting a feature request...

2007-11-22 Thread Ken Stanley
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

[PHP-DEV] Quick question before submitting a feature request...

2007-11-21 Thread Ken Stanley
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

Re: AW: [PHP-DEV] Method overloading by method signature

2007-10-15 Thread Ken Stanley
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]>

[PHP-DEV] Input File Not Specified Error

2007-08-01 Thread Ken Stanley
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

Re: [PHP-DEV] late static binding

2007-06-01 Thread Ken Stanley
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

Re: [PHP-DEV] late static binding

2007-06-01 Thread Ken Stanley
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

Re: [PHP-DEV] late static binding

2007-05-26 Thread Ken Stanley
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

[PHP-DEV] late static binding

2007-05-26 Thread Ken Stanley
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

[PHP-DEV] CVS Account Request: kguest

2007-04-18 Thread Ken Guest
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

Re: [PHP-DEV] solution to the "Date" issue

2005-11-25 Thread Ken Tossell
-- might help in the future. :D Ken -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Where can I apply for a PHP contract?

2004-08-04 Thread Ken Tossell
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

Re: [PHP-DEV] Possible resource leak?

2004-04-12 Thread Ken Tossell
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

[PHP-DEV] php-bugs@lists

2004-02-06 Thread Ken Tossell
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

Re: [PHP-DEV] dollars and sense.

2004-01-26 Thread Ken Tossell
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 . &#x

[PHP-DEV] SimpleXML Docs

2004-01-23 Thread Ken Tossell
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

Re: [PHP-DEV] DOM Examples?

2004-01-07 Thread Ken Tossell
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

[PHP-DEV] DOM Examples?

2004-01-07 Thread Ken Tossell
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,

[PHP-DEV] CVS Account Request: kennyt

2003-12-21 Thread Ken Tossell
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

[PHP-DEV] Proposal: New CVS Account Checks

2003-11-29 Thread Ken Tossell
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

Re: [PHP-DEV] Proposal: Array syntax

2003-11-04 Thread Ken Tossell
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

Re: [PHP-DEV] Looking for comments whether this is a bug or not

2003-08-31 Thread Ken Tossell
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

Re: [PHP-DEV] Variable Scope

2003-08-31 Thread Ken Tossell
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,

Re: [PHP-DEV] Unofficial php 4.3.3 Debian packages

2003-08-26 Thread Ken Tossell
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

Re: [PHP-DEV] [Proposal] Idea for Application level variables

2003-08-14 Thread Ken Tossell
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]>

Re: [PHP-DEV] CVS Account Request: idtere

2003-08-09 Thread Ken Tossell
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

Re: [PHP-DEV] Making a variable global question

2003-08-01 Thread Ken Spencer
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

Re: [PHP-DEV] Making a variable global question

2003-08-01 Thread Ken Spencer
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

[PHP-DEV] Making a variable global question

2003-07-31 Thread Ken Spencer
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

Re: [PHP-DEV] Feature proposal

2003-07-22 Thread Ken Tossell
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

Re: [PHP-DEV] var_dump_html()

2003-07-03 Thread Ken Tossell
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

Re: [PHP-DEV] CVS Account Request: yangjianrong

2003-07-02 Thread Ken Tossell
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

Re: [PHP-DEV] (ATTENTION) Pre-Beta

2003-06-28 Thread Ken Tossell
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

Re: [PHP-DEV] sqlite documentation

2003-06-24 Thread ken
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

Re: [PHP-DEV] Re: [PEAR-DEV] Re: [PHP-DEV] [RFC] Binary pecl packages

2003-06-20 Thread Ken Tossell
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

Re: [PHP-DEV] Re: [PEAR-DEV] Re: [PHP-DEV] [RFC] Binary pecl packages

2003-06-19 Thread Ken Tossell
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.

Re: [PHP-DEV] [RFC] Binary pecl packages

2003-06-18 Thread Ken Tossell
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