Re: [PHP-DEV] Consistent function names

2015-03-05 Thread Sean Coates
> If PHP has macro or userspace aliasing! > This is one possible solution for this. The engine has support for aliases. See http://php.net/manual/en/internals2.ze1.zendapi.php If I thought this “consistency” was very important (I do not, and I fully expect an RFC on this to fail if this thread

Re: [PHP-DEV] RFC - Array slice syntactic sugar

2015-03-20 Thread Sean Coates
> I posted four suggestions earlier, > > They were: > > @ > & > * > ^ > > My favourites are the asterisk or caret. That’s no different than `@` being invalid because it’s already in use. $ php -a Interactive shell php > define('a', 1); php > define('b', 2); php > echo @a . "\n"; 1 php > echo

Re: [PHP-DEV] Unexpected behavior for ::

2011-12-12 Thread Sean Coates
> I'm not sure if this is the desired behavior and i don't want to submit a > bogus bug report. > … > At first i would expect an error since A was not instantiated, at most i > would expect to return NULL but not 'stuff'. > Is this a bug ? This is explained here: http://php.net/language.oop5.b

Re: [PHP-DEV] PHP 5.4 Benchmarks

2012-02-01 Thread Sean Coates
> APC should join the party soon, not sure yet if it is ready yet. We > will run compat tests first. I ran into a crashing blocker with APC on 5.4: https://bugs.php.net/bug.php?id=60845 If anyone has the bandwidth to look into that, I'd love to help out in any way I can. (Sorry for the thread h

[PHP-DEV] Lots of people read this list. Please be courteous of their time. [was: Re: [PHP-DEV] Github Pull Request]

2012-03-20 Thread Sean Coates
> Thanks for the reminder! If it ever looks like I'm getting carried away > while standing up to these guys, please don't be afraid to let me know. I hate to even get involved in this thread, but [especially] now that the issue is resolved, could you please start replying to people in private in

Re: [PHP-DEV] Some Stats

2012-04-17 Thread Sean Coates
> Wooot! What's my prize? ;P Shame.

Re: [PHP-DEV] Some Stats

2012-04-17 Thread Sean Coates
My response earlier was meant to be funny, mostly, but I did also intend to convey some of the same things Rasmus said. The only person who wants to participate in a conversation where someone is hogging the floor is the person doing the talking. > Yeah one of the problems that really frustrate

Re: [PHP-DEV] Re: [VOTE] Vote change for empty() RFC

2012-05-13 Thread Sean Coates
> which raises the question, > if most of the PHP group doesn't care enough to vote, does it mean it is > a bad feature? I think the disinterest is more generalized than this particular vote. As far as I can tell, only 3½ members of the PHP Group actually still participate in the PHP community

Re: [PHP-DEV] Re: [VOTE] Vote change for empty() RFC

2012-05-13 Thread Sean Coates
> can I ask how did you come up with that number, and who is the half man? :) Rasmus, Andi, and Ze'ev. Andrei works with something PHP-related, sort of, still, and is only involved on occasion, so I counted him for half. The others are all names from Internets past (pardon me if I'm wrong, but I

Re: [PHP-DEV] Re: [PHP-CVS] del php-src: .travis.yml LICENSE Makefile.gcov NEWS README.md UPGRADING UPGRADING.INTERNALS Zend/tests/bug18556.phpt Zend/tests/bug60738.phpt Zend/tests/bug61681.phpt Zend/

2012-07-24 Thread Sean Coates
> Use > git reset --hard origin/PHP-5.4 > to reset your local checkout to the current version on the server. It should be noted that when you `reset --hard`, you'll lose local changes (including branch commits, except in the reflog). You'll probably want to stash first, reset, then stash pop

Re: [PHP-DEV] Add runkit to PHP Runtime

2012-08-02 Thread Sean Coates
> For my vote: I think keeping this in pecl is fine, because they're all > things which can be done from the extension space. If my vote still counts (I was somehow involved in the creation of runkit at one point (-: ), I say the same: extension is fine. Don't monkeypatch production. S

Re: [PHP-DEV] Moving to an AST-based parsing/compilation process

2012-09-04 Thread Sean Coates
> Some people asked me what the advantages of using an AST-based > parsing/compilation process are, so I put together a few quick notes > in an RFC: > > https://wiki.php.net/rfc/ast_based_parsing_compilation_process > > It would be nice to get a few comments from other core devs on this. Pardon

Re: [PHP-DEV] PHP 5.1 Beta 1

2005-04-03 Thread Sean Coates
Andi Gutmans wrote: I'd like to roll PHP 5.1 Beta 1 very soon. Wez, I've been waiting for PDO in order to get this going. Do you feel it's mature enough or should I hold off some more time? Before we go beta, I'd like to see php_check_syntax() disappear (as it seems it will never be "fixed"). It

Re: [PHP-DEV] [PATCH] Modifications for ext/session/

2005-04-20 Thread Sean Coates
Daniel J Cain Jr. wrote: One change adds a PHP function session_is_started() to determine if a session has already been, well... started. :) It also adds an optional id parameter to session_regenerate_id() allowing the user to provide their own id instead of PHP generating a new one. I'm not i

Re: [PHP-DEV] Re: pear package in 4.3.x releases

2005-04-26 Thread Sean Coates
Andreas Korthaus wrote: If you want to rely on users to install packages (which is a good idea IMHO) all users (not only superusers) need a reliable tool for installation/management (also without shell-account). Greg has made significant progress in this area (PEAR 1.4's remote installation cap

Re: [PHP-DEV] Function proposal

2005-05-16 Thread Sean Coates
AnteD wrote: Yes I know that this is a small function and yes I know it can be copy-paste with every new project you do but from the first day I've been using PHP until today this function follows me everywhere and I now that everyone is using it one way or the other for debugging.. ... The

Re: [PHP-DEV] PHP 5.1

2005-06-06 Thread Sean Coates
Jason Garber wrote: If there was any way to accommodate this with userland PHP code, I would have already done it. However it is an engine level function that has to be added to the core of PHP. For the record, I also find ifsetor useful, but what you want can be accomplished like this:

Re: [PHP-DEV] Beta 2 Take Infinity

2005-06-22 Thread Sean Coates
Andi Gutmans wrote: Please check http://snaps.php.net/~andi/ Try not to find show stoppers unless they format your hard drive :) Will post public tomorrow... Andi Number of tests : 1912 1422 Tests skipped : 490 ( 25.6%) Tests warned:0 ( 0.0%) ( 0.0%) Tests fa

Re: [PHP-DEV] Beta 3

2005-07-15 Thread Sean Coates
Andi Gutmans wrote: I rerolled Beta 3 due to some critical patches that needed to make it in. Please download and give a sanity test. If no new critical bug is found I'll put it up this evening or tomorrow. I might be too late, here, but when building: ./configure --with-mssql --with-pdo-dblib

Re: [PHP-DEV] $this availability inside static-functions

2005-07-21 Thread Sean Coates
how can i check if a method is called statically when called from inside another object? (without debug_bactrace()) type="own">http://blog.phpdoc.info/archives/4-Schizophrenic-Methods.html Short answer: $isStatic = !(isset($this) && get_class($this) == __CLASS__); HTH S -- PHP Internals - P

Re: [PHP-DEV] $this availability inside static-functions

2005-07-21 Thread Sean Coates
i know this hack, but it does not work, if the statically called method is from the same class as the calling object Good point. Sorry for not noticing. .. I have no idea WHY someone would want to do this.. that said, I don't know of a way to do it, either. S -- PHP Internals - PHP Runtime D

Re: [PHP-DEV] Re: SOAP SSL support doesn't work when allow_url_fopen is turned off

2005-07-28 Thread Sean Coates
That won't work, eval() is not a function... Ah yes, you're right... I guess we do need another INI setting. Or constructs-that-look-like-functions could be governed by disable_functions (eval, echo).. that would cause other problems (like a disabled "return"), though. S -- PHP Internals

[PHP-DEV] PHP_INI_SYSTEM and httpd.conf

2005-08-01 Thread Sean Coates
Hello core folks. Please see this table: http://php.net/manual/en/ini.php#AEN189095 As long as I can remember, the manual has said that PHP_INI_SYSTEM is settable in httpd.conf. I just ran some tests, and it seems that this is not the case. Seems these are only settable in php.ini. The man

Re: [PHP-DEV] PHP_INI_SYSTEM and httpd.conf

2005-08-01 Thread Sean Coates
I can clearly set the PHP_INI_SYSTEM option in the httpd.conf. As stated in http://php.net/configuration.changes you should use the 'php_admin_xx' directive instead of 'php_xx'. *cough* Yes, you're right. Sorry for the noise. S -- PHP Internals - PHP Runtime Development Mailing List To unsubs

Re: [PHP-DEV] custom superglobals

2005-08-06 Thread Sean Coates
Ron Korving wrote: Wouldn't it be a good feature to have users create their own superglobals? I realize that you're probably talking about creating custom superglobals in the PHP core, but you might want to look at Sara's Runkit project (in PECL). It allows custom superglobals. http://pecl.

Re: [PHP-DEV] PHP 6.0 Wishlist

2005-08-13 Thread Sean Coates
But then everybody will just start using $_RAW_GET instead of $_GET. What will that solve? This was one of my concerns. $_RAW_* is easy to grep for, though. Sure, it can still be abused, but it'll be a lot easier to see WHERE it's being abused. Currently, a grep for $_GET will return a large

Re: [PHP-DEV] PHP 6.0 Wishlist

2005-08-14 Thread Sean Coates
It occurred to me, while reading different parts of this thread, that if the named parameter feature makes it in to PHP 6.0, there's a solution for both sides of the parameter order argument. 1) yes, would be really nice to clean up the param order for two main reasons: a) constant manual chec

Re: [PHP-DEV] unable to create class from constant

2005-09-19 Thread Sean Coates
> But I was wondering if anyone could enlighten me as to why php would > be upset interpreting the constant as the class name. Thanks. class Foo { function get_name() { return 'Foo'; } } class Bar { function get_name() { return 'Bar'; } } define('Foo', 'Bar'); $C = new Foo(); echo $C->get_

[PHP-DEV] E_STRICT on inheritance + method parameter defaults?

2005-09-21 Thread Sean Coates
Hello all, This crept up as the result of a bug report (not mine -- http://bugs.php.net/34494), and a small discussion on IRC: Why does an E_STRICT get raised when extending a class, and altering the method's proto defaults? I understand why it would be thrown when adding/changing parameters, but

Re: [PHP-DEV] what happened to that new isset() like language

2005-10-29 Thread Sean Coates
Bob Silva wrote: > It should be a function and not a language construct IMHO. Either ifsetor or > overload the isset statement (which may not be possible within the engine). It _has_ to be a language construct, and not a function (otherwise, we'd get a notice when first using the variable). It c

[PHP-DEV] date() behaviour changed in 5.1?

2005-11-15 Thread Sean Coates
I discussed this with Rasmus and Derick, yesterday, but I don't think we came to a conclusion.. Is this a bug, or intended behaviour? [EMAIL PROTECTED]:~$ /opt/src/php-5.0.4/sapi/cli/php -r 'echo date("r", "1132003418 ") ."\n";' Mon, 14 Nov 2005 16:23:38 -0500 [EMAIL PROTECTED]:~$ /opt/src/php5-2

Re: [PHP-DEV] date() behaviour changed in 5.1?

2005-11-15 Thread Sean Coates
Pierre wrote: > On Tue, 15 Nov 2005 18:59:32 +0200 (EET) > [EMAIL PROTECTED] (Jani Taskinen) wrote: > > >> If you pass bad data to a function, it should not warn you? >> I'd rather have it as a FATAL error. :) >> >> Nothing to fix here, move along. (and fix your code..) > > > PHP is

[PHP-DEV] FYI: Inventory Control

2005-11-17 Thread Sean Coates
FYI, I just turned on inventory control for products 89-93, and gave them 1 units each (this is to make the backend send me mail on signup). -- Sean Coates (php|architect) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] FYI: Inventory Control

2005-11-17 Thread Sean Coates
Sean Coates wrote: > FYI, > > I just turned on inventory control for products 89-93, and gave them > 1 units each (this is to make the backend send me mail on signup). > Sorry. Wrong list. My apologies. S -- PHP Internals - PHP Runtime Development Mailing List To unsubscri

Re: [PHP-DEV] Re: namespace separator ideas

2005-11-27 Thread Sean Coates
> Sean reckons that it's Shaloshayim > (http://blog.phpdoc.info/archives/27-+1-for-Shaloshayim-Nekudotayim.html): > > T_SHALOSHAYIM_NEKUDOTAYIM Changed that to Shalosh (as apparently the -ayim means "twice" (as in PAAM=2, AYIM=twice, NEKUDOT=dot, AYIM=twice)). Not that I claim to know very much

Re: [PHP-DEV] namespace separator poll, update

2005-11-28 Thread Sean Coates
> How about ;; then? > name1;;name2::myfunction(); PLEASE, MAKE IT STOP! ;; is already perfectly valid syntax: [EMAIL PROTECTED]:~$ php5 -r 'define("name1",FALSE); class name2{function myfunction(){ echo "foo\n"; }} name1;;name2::myfunction();' foo * Pre-existing operators are out of the question

Re: [PHP-DEV]

2005-11-30 Thread Sean Coates
Sara Golemon wrote: >> oh, that's easy to solve '> >> btw, th ejsp way is to have ' >> > Marcus- > You give me greif over ;; and ** as namespace separators then you > suggest meaningful whitespace? *tsk*tsk*tsk* > -Sara > > :) Ah, but the whitespace is already meaningful (-: [EMAIL PROTECTED

Re: [PHP-DEV] Re: Question about superglobals

2007-11-16 Thread Sean Coates
Yes, and in even larger scale applications it can become even more useful. I have a web framework I'm working on, it's about 9,500 lines of code now with hundreds of functions/classes. Every function/method has to specify global for my 3 universal variables which contain large arrays of configu

Re: [PHP-DEV] Re: Question about superglobals

2007-11-16 Thread Sean Coates
So the idea now is to inappropriately force everything to be a class? It is appropriate. That's how it was designed. Obviously superglobals were not designed to be user-definable. If configuration is defined in a class, then as a maintainer, you can easily determine where the data was de

Re: [PHP-DEV] Re: Question about superglobals

2007-11-16 Thread Sean Coates
$_GLOBALS Don't meant to be too pedantic, but if anyone's looking for this in the archives, it's $GLOBALS, not $_GLOBALS. S -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Garbage collector patch

2007-12-03 Thread Sean Coates
Sorry about that. Does the attached PDFed screenshot work for you? If only we knew how to publish documents on that 'web thing. (-: S -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Internals read-only

2007-12-13 Thread Sean Coates
2.) Probably a better idea, just click that DELETE button on any emails you don't feel like reading or responding to. I find that, in a case study performed by myself just now, it takes me about a half-second to achieve success with this method. Against my better judgement, I'm jumping into

Re: [PHP-DEV] Re: PATCH: anonymous functions in PHP

2007-12-20 Thread Sean Coates
array_filter($my_data, function($test){ return 3 === ($test % 4) }); What's wrong with regular functions? At risk of wading into yet circular another discussion on internals@, I was part of the original thread on this subject, and I agree with Stas here: unless they're real closure, they're

Re: [PHP-DEV] Volunteers for Subversion 1.5 conversion of cvs.php.net?

2008-07-24 Thread Sean Coates
Do we have a preference of Apache's SVN or svnserve? The former requires Apache 2+, AFAIK. S -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] RE:

2008-10-27 Thread Sean Coates
Actually I've been following namespaces for a fair while, but the issue of :: being a problem wasn't really raised until a few weeks ago. I realize this isn't a terribly constructive comment as it doesn't solve any problems, but I hope it's constructive in the way that it actually causes

Re: [PHP-DEV] array_key_exists BC break

2008-10-27 Thread Sean Coates
btw. this also affects quite a few other functions: next/current/ key/... at least ... and maybe more after using the "new" parameter parsing API. I would say "no" for 5.3. But for 6 it would be fantastic to have all array-related operations supporting ArrayAccess interface, where possible

Re: [PHP-DEV] namespace separator and whining

2008-10-27 Thread Sean Coates
You want to force users to use the full name at all times. IOW, you want to sacrifice convenience for performance. (chiming in because it seems that we're overlooking something obvious here) If it comes down to this, I'd prefer to see an E_NOTICE for the "bad performance" use, though I do

Re: [PHP-DEV] array_key_exists BC break

2008-11-04 Thread Sean Coates
I'd prefer to have it fixed, but then it probably requires changing the parameters API for 'a', which might lead to some unexpected results with regard to functions that modify their arguments. I think we may leave it alone for this alpha but try to resolve it for 5.3 release. If my opini

Re: [PHP-DEV] array_key_exists BC break

2008-11-06 Thread Sean Coates
I applied this to HEAD Oops. I mean to PHP_5_3 (keep forgetting that it's not HEAD). S -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] array_key_exists BC break

2008-11-06 Thread Sean Coates
So as suggested and wished, here is a patch that add a modifier '%' to 'a' in parameter parsing API, where it allows object that implements ArrayAccess to be accept. Although it doesn't invoke any their methods, i.e. just how it works nowdays. I applied this to HEAD and ran a few minor (manua

Re: [PHP-DEV] alpha3 or forever hold your peace

2008-11-10 Thread Sean Coates
Please bring up any areas you are concerned about that we might have forgotten. PHP_5_3 as of this morning does not contain that patch that makes ArrayObject behave like an array (reset()). Here's a test for that (I don't have php-src karma) if anyone would care to commit it. Passes on 5.

Re: [PHP-DEV] alpha3 or forever hold your peace

2008-11-10 Thread Sean Coates
Here's a test for that (I don't have php-src karma) if anyone would care to commit it. Passes on 5.2.6, but fails on 5.3alpha3-dev FWIW, I committed that patch today. I'd like for it to pass by RC1 (-: S -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://ww

Re: [PHP-DEV] array_key_exists BC break

2008-11-13 Thread Sean Coates
Also cant we some how automate the BC break testing for this (aka scan all functions that accept an array with the old API in 5.2, pass it an ArrayObject instance and see what happens and compare that to 5.3)? Yes we can ;) That should be not hard to do by looking at ones having 'a' in pa

Re: [PHP-DEV] array_key_exists BC break

2008-11-21 Thread Sean Coates
Hmm, I really think we should simply maintain BC 100% but using the new parameter parsing API and then really think this through for the next bigger release (presumably PHP 6.0) and come up with a set of interfaces for objects that allow them to more sensibly work with functions. FWIW, I

Re: [PHP-DEV] About dropping magic_quotes in 5.3 (was: Re: [PHP-DEV] Re: PHP 5.2.7 + magic_quotes_gpc broken)

2008-12-08 Thread Sean Coates
I don't safe stuff relying on magic_quotes is safe but kicking it will open up way more attack vectors... :-( In my opinion, this isn't about opening attack vectors (one hole is all it takes, so they're probably already vulnerable), but removing mqgpc without fair warning to end users could

Re: [PHP-DEV] towards the next 5.3 release

2009-02-08 Thread Sean Coates
Maybe we can first collect a list here on internals@ on what apps have been successfully been run on 5.3 and whether they required any tweaking. If after we make a list there's still need to reach out I'd be happy to do some of that. FWIW, I've some casual testing with Habari and 5.3 and we h

Re: [PHP-DEV] The constant use of isset()

2009-05-12 Thread Sean Coates
So if the variable is set and contains "false", we can't check it ? And near same problem for 0, empty array and empty string. How would you ever get false (the value, not the string) into a request variable? (without setting it that way after the request init, that is) S -- PHP Interna

Re: [PHP-DEV] The constant use of isset()

2009-05-12 Thread Sean Coates
So this isset() behavior will only be available for request variable, not for all variables ? I'm not picking sides, but that seems to me like the overwhelmingly popular use case. S -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: Named arguments revisited

2006-01-15 Thread Sean Coates
Derick Rethans wrote: > You do know that that means that we have to consistently name all > parameters to our 4000+ functions, right? On this note, and to throw in my 2c on the issue (from a doc standpoint): there are places in the manual where I've (personally) deliberately changed the parameter

[PHP-DEV] Unicode Progress (was: Naming Arguments)

2006-01-23 Thread Sean Coates
Andrei Zmievski wrote: > There is no "unconverted" function list. There is unicode-progress.txt > file where we have been tracking what has been done, but I'm not sure as > to its accuracy as of yet. Some of the functions listed there may need > to be looked over after Dmitry's patch. It would be

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

2006-01-24 Thread Sean Coates
Wez Furlong wrote: > As Gareth points out, an RRDTool extension is a no-go for the PHP > project due to a licensing conflict. > > The best I can suggest is hosting your project on sourceforge.net. ... digging up an old thread, here.. I happened up the rrdtool site, today, and saw this: http://peo

Re: [PHP-DEV] 'odd' handling of $moo['bar'] where $moo is a string

2006-02-09 Thread Sean Coates
> Now, it seems that $keys['file'] == $keys[0], which makes sense why the > issets > return true. However... > if ('file') echo 'true'; > will print moo, therefore 'file' == 1, not 0. Why is this different when > using > it as a string offset? > IMO, using a string as a string offset, a fatal e

Re: [PHP-DEV] 'odd' handling of $moo['bar'] where $moo is a string

2006-02-09 Thread Sean Coates
> Ahh.. I see. That does make sense now as to why it results in the first char > in the array - however I still think it makes more sense not to cast, but > rather to give a fatal error. PHP autocasts everywhere. This would break years worth (and thousands) of applications. S -- PHP Internals

[PHP-DEV] foreach, assigning to a reference, and E_NOTICE

2006-03-06 Thread Sean Coates
Hi, A week or two ago, a colleague asked me about a strange behaviour he experienced, with seemingly-duplicate data within a foreach block. Upon further examination, we determined that this was caused by assigning to a referenced variable: (Output is: "zero one one") I asked around about this,

Re: [PHP-DEV] foreach, assigning to a reference, and E_NOTICE

2006-03-06 Thread Sean Coates
> it's not the problem of the second foreach, any usage of $j after the > 1st foreach as &$j will hurt Yes. I thought it was clear that I understand this. I guess not. My point is that foreach is doing something that isn't immediately obvious. The same is true of your for loop, but to a lesser ex

Re: [PHP-DEV] foreach, assigning to a reference, and E_NOTICE

2006-03-07 Thread Sean Coates
> It *has* to be an E_STRICT because it's something related to language > and possible semantic errors. E_NOTICE is not for that. Isn't it the same as the following? [EMAIL PROTECTED]:~$ php5 -d"error_reporting=2047" -r '$a=$b;' Notice: Undefined variable: b in Command line code on line 1 Accor

Re: [PHP-DEV] GOTO and/or BREAK LABEL

2006-03-07 Thread Sean Coates
Steph Fox wrote: > Still notably haven't heard from: Lukas, Nuno, Alan K, Sean... 1) 0 2) 0 3) 0 4) 0 Sorry for the noise. I was told to vote. I don't personally have much use for goto, and I see both sides. I also only run PHP on dedicated platforms, so if appropriate engine mods were made (if

Re: [PHP-DEV] mail addition

2006-03-07 Thread Sean Coates
Gareth Ardron wrote: > Hi, > > Sort of mailing this in as the result of the rantings of quite a few > mates of mine who look after shared hosting boxes. > > Would it be acceptable to do up a patch for the mail() function which'll > listen to an ini entry[0] for a logfile to log all mail sent usin

Re: [PHP-DEV] phps line numbering

2006-03-15 Thread Sean Coates
> Patches have been written and languish simply awaiting inclusion in HEAD Johannes' method (..) doesn't copy & paste well in FireFox 1.5 -- you might consider this a FF problem, but in any case, line numbers are pasted, so this is really a pain for sharing code. Until a good method is found

Re: [PHP-DEV] Getting system statistics

2006-05-08 Thread Sean Coates
> Is there any funciton to get the system related statistics like, > meminfo, cpuinfo, etc. Hello, In the future, please use php-general@lists.php.net for anything not related to PHP internals development. As for your question, see http://pecl.php.net/statgrab S -- PHP Internals - PHP Runtime

Re: [PHP-DEV] PHP6 OOP compiler feature question / request

2006-05-11 Thread Sean Coates
> In any event, I'm just trying to indicate that others may also face > issues if they have PHP4 apps with these sorts of keywords in them. "try" has been a reserved word (documented) since Fri Oct 1 08:07:16 2004 UTC: http://cvs.php.net/viewcvs.cgi/phpdoc/en/appendices/reserved.xml?view=diff&r1=1

Re: [PHP-DEV] PHP Release Process Sucks

2006-05-17 Thread Sean Coates
Ilia Alshanetsky wrote: > Let's keep this number of lists to the minimum. Thanks to Lukas, we > already have a wiki with all this information, lets keep using it, the > release process is complex enough already without having to scramble > around looking for information on dozens of websites. Spea

Re: [PHP-DEV] Extension Installation

2006-06-09 Thread Sean Coates
Michael B Allen wrote: > Is /etc/php.d a standard part of *every* php4 installation? Can I rely > on it's existance? Is it's location a configuable option? No, you can't rely on it. What's in there? S -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.

Re: [PHP-DEV] E_STRICT

2006-07-14 Thread Sean Coates
Ilia Alshanetsky wrote: > Why not just define your own custom error handler and have it filter out > the error messages that you don't want to see... To me this would seem > like a easier approach, i would be against adding a in-language filter > for this. Inability to easily determine which error

Re: [PHP-DEV] Date flamewar summary

2006-07-19 Thread Sean Coates
> Now that everyone had their say (I hope) I've made a quick tally of the > votes so far: > > Rename date & timezone classes to DateTime and DateTimeZone respectively FWIW, add me to this. S -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.

Re: [PHP-DEV] Adding pecl/zip to 5.2

2006-07-19 Thread Sean Coates
> Many people (incl. php devs) asked me if I can include zip in 5.2.0. > Ilia thought it was too late in the game and planed to do it in 5.2.1. I don't remember seeing a discussion on including Zip in core (perhaps I just missed it, but a quick search didn't turn it up). I think Zip is better suit

Re: [PHP-DEV] Adding pecl/zip to 5.2

2006-07-19 Thread Sean Coates
> From my experiences the problem with this is many shared hosts wont install > non core modules, so the more modules moved from core to pecl the less > flexible php will be and the less use it will be. > > I understand the need to keep the core code maintained and as clean and > lean > as possibl

Re: [PHP-DEV] RFC: unicode.semantics: runtime or not?

2006-09-06 Thread Sean Coates
> 1. ZEND_INI_SYSTEM and make people run two copies of Apache if they want > both modes. This is architecturally more simple and more robust, I believe. > 2. ZEND_INI_PERDIR and let people switch modes as described above. This > is a lot of work and will probably result in quite a few edge cases >

Re: [PHP-DEV] ibm_db2 documentation update.

2006-09-11 Thread Sean Coates
> There is a missing function from the ibm_db2 driver documentation. I would > like to add this to the documentation package. This is my first try at > this, I hope this is done correctly. > If one of you kind folks can take a moment and add this to the > documentation, it would be greatly apprec

Re: [PHP-DEV] RSS feed for bugs.php.net

2006-09-28 Thread Sean Coates
Andi Gutmans wrote: > Cool. Yes, generating that link would be *very* useful. > Can someone hack that up? It's actually really easy to generate. Do an advanced search: http://bugs.php.net/search.php?search_for=&boolean=0&limit=10&order_by=&direction=ASC&cmd=display&status=All&bug_type%5B%5D=Docum

Re: [PHP-DEV] Feature request

2006-11-09 Thread Sean Coates
Hi, > What are you thinking about adding this feature: > echo foo()[4]; // < it that I'd like to see this. IMO, it's similar to $obj->objproperty->property, syntactically. It would also simplify working with third party libraries/apps that pass a lot of arrays around in a weird way *cough*

[PHP-DEV] Namespaces in PHP 6 - ++$take

2006-11-10 Thread Sean Coates
Hello all, A number of factors have come together to prompt me to possibly commit mailing-list-suicide by re-opening the namespace issue. Last week at Zendcon, a number of PHP developers/community members chatted about namespaces in PHP 6. That chat was the prime motivator for this email, but the

Re: [PHP-DEV] Namespaces in PHP 6 - ++$take

2006-11-10 Thread Sean Coates
> That's a bit of a circular logic no? There are indeed technical > challenges to implementing namespaces, these reasons have been covered > in previous discussions many times, since no adequate solution was > devised they were never implemented. Once those issues are resolved or > at the very leas

Re: [PHP-DEV] Namespaces in PHP 6 - ++$take

2006-11-10 Thread Sean Coates
> PHP 6 is not yet out and probably won't be production quality for quite > some time. Which means that migration to it en mass is probably not > going to happen this decade :-). I'm not talking about forcing everyone to use namespaces tomorrow. I'm trying to plan for a future where there's a sen

Re: [PHP-DEV] [VOTE][RFC] Name of Next Release of PHP (again)

2014-07-23 Thread Sean Coates
> did you consider resetting the vote as the text was changed multiple times > after the voting begun? It was reset. S

Re: [PHP-DEV] On voting, including the next release name.

2014-07-27 Thread Sean Coates
> The way voting works now, I happen to know which option is "winning". I > happened to know that *before* I cast my vote. The current results are > posted on the RFC, and the same information percolated into emails > encouraging folks to vote. I wonder, though, if knowing which was "leading" > a

Re: [PHP-DEV] Annotation PHP 7

2014-11-04 Thread Sean Coates
>> In Python, decorators are very >> powerful for modifying function behavior (i.e., attaching pre/post >> conditions to functions or doing some things phpunit does is really >> easy) but it is too much for just attaching data. FWIW (and I apologize if this is just adding to the noise), one of the

Re: [PHP-DEV] Better RFC conformance for FILTER_VALIDATE_URL

2014-11-06 Thread Sean Coates
> On Thu, Nov 6, 2014 at 3:39 PM, Kévin Dunglas wrote: >> FILTER_VALIDATE_DOMAIN checks conformance with DNS RFCs : total length, >> label length and allowed characters (_ are allowed in domain names but many >> other characters are forbidden such as ~/+...). I'll add IDN support too >> when IDN s

Re: [PHP-DEV] HEADS UP: Upcoming Feature Freeze for PHP 5.5.0

2013-01-25 Thread Sean Coates
> Any software written to make use of that already has > conditional checks around it plus that feature needs a serious re-think > anyway. FWIW, we only deploy with APC, so we don't necessarily have checks guarding apc_fetch()/apc_store(). That said, it would be trivial to write wrapper functions

Re: [PHP-DEV] Proposal for serious BC compatibility aka language versioning

2013-02-03 Thread Sean Coates
> So, if we are talking about PHP 6, then the opening accompanied by the version it was written for, it was tested with and then > the engine could switch to a compatibility mode for that version. > > Seems to me that this would solve the problem where a host can't upgrade to > a more modern vers

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

2013-02-19 Thread Sean Coates
>> Say we agree on the syntax above >>> ($n) |$m| => $m * $n; >> What happens when my one liner function needs to do one more operation >> like checking the value of $n before multiplication? > > As I stated before suggesting the syntax: It's only meant for a single > expression. It's purposefully

Re: [PHP-DEV] Re: Allowing is_* functions to accept multiple parameters

2013-09-18 Thread Sean Coates
> i.e. is_null($a, $b, $c) would be the same as is_null($a) && is_null($b) > && is_null($c) Note that this would not be semantically equivalent in this form, even if `is_null()` did accept multiple parameters, because of the short-circuiting with `&&`:

Re: [PHP-DEV] Re: Allowing is_* functions to accept multiple parameters

2013-09-18 Thread Sean Coates
> Not a good idea IMHO: it would complexify the execution a lot, think about: To be clear, I wasn't proposing an alternative. I was just pointing out that function call semantics are not the same as conditional (short-circuit) semantics, as they appeared in the OP. S -- PHP Internals - PHP Ru

Re: [PHP-DEV] are there alternate interfaces to the bug tracking system?

2009-07-04 Thread Sean Coates
so what i'm wondering is: is there an easily parseable or structured interface (xmlrpc, soap, read-only JSON export, whatever) to the php.net bts that could be used to get a bug's information? or would such a bts- link service need to resort to scraping the page for a particular bug's status

Re: [PHP-DEV] are there alternate interfaces to the bug tracking system?

2009-07-04 Thread Sean Coates
Just another question: may you please list me all the possible 'Status' field values? In particular we are interested in those 'Status'es that identify the bug as closed and "wontfix". I believe all current statuses are declared here: http://cvs.php.net/viewvc.cgi/php-bugs-web/include/functions.

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

2009-07-07 Thread Sean Coates
I would like to ask all developers to voice their opinions of whether it makes sense to add this to 5.3 or to throw it away (either one is fine btw). I don't want to start a long discussion, but IMO this and other major language changes doen't belong in a point release of 5.3.x (whether i

Re: [PHP-DEV] Re: [PHP-CVS] svn: /php/php-src/ branches/PHP_5_2/NEWS branches/PHP_5_2/ext/filter/logical_filters.c branches/PHP_5_3/NEWS branches/PHP_5_3/ext/filter/logical_filters.c trunk/ext/filter/

2010-04-02 Thread Sean Coates
> If you look closely you will see that all 5 validators in the chart > reject single-word domains. Note that this regex also considers anyth...@localhost to be an invalid email address. I hear your point about the difference between a local machine named "va" and the "va." TLD, but I doubt I'm

Re: [PHP-DEV] A critique of PHP 6

2010-04-21 Thread Sean Coates
> No, it is not hard to write strlen but I would also like to see these > functions organized better. I've felt that PHP has been a mess since I > learned it way back when, the naming inconsistencies are everywhere. I don't believe there's anything stopping you (or other users) from creating ei

Re: [PHP-DEV] APC in trunk

2010-06-20 Thread Sean Coates
APC has certain effects on the code that are far from obvious, and enabling it by default would significantly complicate the average user's learning curve. Can you elaborate? What "average user"-facing features are non-obvious? We should document them if nothing else. S -- PHP Internals -

Re: [PHP-DEV] RFC - MACRO

2010-12-26 Thread Sean Coates
> I want to request a C/C++ feature that i think is good. > > MACRO FWIW, you could use Prep ( https://github.com/andreiz/prep ) and GPP ( http://en.nothingisreal.com/wiki/GPP ) to accomplish this. S -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php

  1   2   >