[PHP-DEV] Unifying logical operators

2018-07-09 Thread Ryan
imagecreatetruecolor(120, 20); if(!$gdImage) die('Cannot Initialize new GD image stream'); I've written a very rough draft RFC here[7] - and I would love feedback. If it's taken well I can put it up on the wiki. Thanks, Ryan "Iggy" Volz [1]: h

Re: [PHP-DEV] Unifying logical operators

2018-07-10 Thread Ryan
On Tue, Jul 10, 2018 at 2:26 AM, Walter Parker wrote: > > That is a matter of style, as I find $a = func() or die more clear that > the version that uses || > > Not chaining stuff together is a third style. > > This feels like a Python PEP request. By that I mean that Python wants to > have only

Re: [PHP-DEV] Unifying logical operators

2018-07-10 Thread Ryan
On Tue, Jul 10, 2018 at 10:58 PM, Alice Wonder wrote: > Using github may not be the most reliable method. > > Look at what is most popularly used in composer dependencies. Absolutely - but it's the first one that came to mind when thinking of "how to get popular repositories really quick". I

Re: [PHP-DEV] What's our official stance on small self-contained additions in a micro version

2015-04-02 Thread Ryan Pallas
tion to users about new features coming through as they can read the RFCs and see what's approved, rejected, in limbo, etc. > > cheers > Dan > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > I know I'm new to this list, and its my first response, but I feel like more transparency is a good thing for the users of PHP. Cheers! Ryan

Re: [PHP-DEV] Deprecate setlocale?

2015-04-02 Thread Ryan Pallas
Does anyone have a better suggestion on exposing a thread safe version? > > What about just adding another function: setlocale_global(), or > similar? I don't want a new INI setting any more than you do. > > Adam > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > I like the idea of an INI actually, but I would make it default to the current bahaviour and user education so those who need TS know to change it. Ryan

Re: [PHP-DEV] Fixing bundled extension version mess

2015-04-15 Thread Ryan Pallas
; version even if the code was not modified ? > > Regards > > François > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > - Ryan

Re: [PHP-DEV] RFC: spl_autoload_register() should provide kind of entity to load

2015-04-18 Thread Ryan Pallas
return true; } return false; }); As you can see, by the result of the naming convention, I know where the class/interface/trait will be defined based on its namespace and name. Since traits live under a traits folder, its obvious from their location on the filesystem what they are (no need to .trait.php at the end). Additionally since Interface is how all interfaces end in name, the filename would be redundant to have .interface.php at the end. -Ryan

Re: [PHP-DEV] Adding "numeric" type hint

2015-04-28 Thread Ryan Pallas
do that with the wonderful is_numeric. And for simplicity, make an invalidArgument method that you can call after manually checking if arguments are wrong: *http://3v4l.org/r0qO0 <http://3v4l.org/r0qO0>* Works for all versions this tool runs as well. -Ryan > > -- > Stas Malyshev > smalys...@gmail.com > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >

Re: [PHP-DEV] Adding "numeric" type hint

2015-04-29 Thread Ryan Pallas
On Wed, Apr 29, 2015 at 8:37 PM, Yasuo Ohgaki wrote: > Hi Rowan, > > On Thu, Apr 30, 2015 at 11:17 AM, Yasuo Ohgaki wrote: > > > > >> A fatal error wouldn't constitute a DoS vulnerability, would it? > > Attacker may inject huge ID value and/or they may simply access > >>> web sites t

Re: [PHP-DEV] is_digits() and digits type

2015-05-12 Thread Ryan Pallas
On Tue, May 12, 2015 at 1:27 PM, Lester Caine wrote: > On 12/05/15 19:55, Rowan Collins wrote: > > For instance, valid input for a 64-bit signed integer in a database > could include: > > - any PHP native integer (assuming nobody builds with 128-bit ints!) > > - any string consisting of all digit

Re: [PHP-DEV] Proposal: interfaces for object to scalar type casting

2015-05-13 Thread Ryan Pallas
On Wed, May 13, 2015 at 11:16 AM, Guido Contreras Woda wrote: > Hello everyone! > > Multiple frameworks and libraries define interfaces or objects that wrap > around some scalar value and add behavior, the most common case being > arrays and Collection / Hash[Set|List] objects. Although this obje

Re: [PHP-DEV] Bug #69640 Unhandled EngineExceptions thrown from userland do not produce any output

2015-05-16 Thread Ryan Pallas
On Fri, May 15, 2015 at 11:41 AM, Dan Ackroyd wrote: > On 15 May 2015 at 17:12, Xinchen Hui wrote: > >> How would that work when people want to write unit/integration tests > >> to test the behaviour of a module when an EngineException is thrown? > >> > >> If you can't create a certain type of e

Re: [PHP-DEV] The most efficicient way to pick key,value from a large array

2015-06-17 Thread Ryan Pallas
Use array_intersect_key with array_flip. $pending_pick_key1 = [uid, username]; array_intersect_key($origin_array, array_flip( $pending_pick_key1)); On Jun 17, 2015 7:25 PM, "Netroby" wrote: > Now, we have a large array, contains user profile. > [uid, username, password, email, qq, msn, skype, ad

[PHP-DEV] PHP7 and types

2015-07-11 Thread Ryan Pallas
is seems really useful to me. If its not something that was considered before I can try to write up an RFC for this, however I'm not sure if this was already considered and denied. Any feedback would be greatly appreciated. -Ryan

Re: [PHP-DEV] PHP7 and types

2015-07-11 Thread Ryan Pallas
On Sat, Jul 11, 2015 at 12:41 PM, Sebastian Bergmann wrote: > Am 11.07.2015 um 19:53 schrieb S.A.N: > > It will be useful for autocomplete in IDE > > That argument is bogus since proper IDEs (PhpStorm, fex.) leverage > docblock annotations for that already. > > Agreed. I don't know any IDE mean

Re: [PHP-DEV] PHP7 and types

2015-07-12 Thread Ryan Pallas
On Sun, Jul 12, 2015 at 4:51 PM, Alan Willms wrote: > What about arrays? How do I declare Foo[] ? > > http://ocramius.github.io/extremely-defensive-php/#/69 > > 2015-07-12 16:37 GMT-03:00 Larry Garfield : > > > On 07/12/2015 11:16 AM, Marcio Almada wrote: > > > >> Stas, > >> > >> 2015-07-12 5:10

Re: [PHP-DEV] JsonSerializable New Interface method Proposal

2015-07-13 Thread Ryan Pallas
> > > Ive just opened a new RFC https://wiki.php.net/rfc/jsonserializable > > regarding Json to Object unserialization. > > I like the idea, but how do you handle complex json notations, that may contain arrays of objects? Say: { "id": 123 "type": "user", "name": "derokorian" "permissio

Re: AW: [PHP-DEV] PHP7 and types

2015-07-13 Thread Ryan Pallas
On Mon, Jul 13, 2015 at 1:40 AM, Rasmus Lerdorf wrote: > > Like I said, adding type checks to every assignment is a rather large > change, and I doubt it can be done without some nasty performance costs. > > Honestly, I would rather have a speedy runtime and put the effort into a > static analysi

Re: [PHP-DEV] json_decode/encode should return full precision values by default

2015-07-29 Thread Ryan Pallas
On Wed, Jul 29, 2015 at 5:25 PM, Yasuo Ohgaki wrote: > Hi all, > > On Thu, Jul 30, 2015 at 7:44 AM, Yasuo Ohgaki wrote: > > > On Thu, Jul 30, 2015 at 1:13 AM, Nikita Popov > > wrote: > > > >> Instead of continuing to use serialize_precision, which will produce > >> unnecessarily long outputs fo

Re: [PHP-DEV] set_exception_handler catches all Throwables

2015-08-19 Thread Ryan Pallas
On Aug 19, 2015 6:44 AM, "Björn Larsson" wrote: > > Plan to migrate to PHP 7 later, like the new Exception/Error way > of working very much. Point is that current set_exception_handler > only address exceptions, not errors. You are right that on that the > surface it's the same callback, but could

Re: [PHP-DEV] ReflectionFile missing

2012-01-29 Thread Ryan McCue
tion For some purposes, you need to be able to reflect files and classes without loading them, which I think is a huge gap in the Reflection API. That said, a proper ReflectionFile would be welcome, even if it did load the file. -- Ryan McCue <http://ryanmccue.info/> -- PHP Internals - PHP

Re: [PHP-DEV] ReflectionFile missing

2012-01-29 Thread Ryan McCue
Ryan McCue wrote: > For some purposes, you need to be able to reflect files and classes > without loading them, which I think is a huge gap in the Reflection API. > That said, a proper ReflectionFile would be welcome, even if it did load > the file. Forgot to mention: it is also, as f

Re: [PHP-DEV] ReflectionFile missing

2012-01-30 Thread Ryan McCue
best :-) I have no need for the class any more, since I'm using a different documentation tool instead. -- Ryan McCue <http://ryanmccue.info/> -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] operators

2012-01-30 Thread Ryan McCue
ns are T_OBJECT_OPERATOR and T_DOUBLE_ARROW respectively, if that helps: http://www.php.net/manual/en/tokens.php The namespace operator is T_NS_SEPARATOR. Hope that helps, -- Ryan McCue <http://ryanmccue.info/> -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [POC Patch] Scalar Type Hinting/Casting - Proof Of Concept

2012-03-01 Thread Ryan McCue
a bit confusing using the typecasting syntax. -- Ryan McCue <http://ryanmccue.info/> -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [POC Patch] Scalar Type Hinting/Casting - Proof Of Concept

2012-03-01 Thread Ryan McCue
Ryan McCue wrote: Double-checking, but this is different to normal typecasting, isn't it? If so, it might be a bit confusing using the typecasting syntax. Could have sworn I saw that "123foo" would give E_RECOVERABLE_ERROR, but I can't find that now, so possibly disre

Re: [PHP-DEV] [RFC - discussion] Object Scalar Type Casting Magic Methods

2012-03-03 Thread Ryan McCue
s are much easier to deal with and should be the way to go here. If you use a single method for all the casts, you'll probably end up recreating separate methods anyway (i.e. `case 'int': return $this->toInt();` ) which seems silly to me. -- Ryan McCue <http://ryanmccue.info

Re: [PHP-DEV] Re: Git Migration: Status Update

2012-03-07 Thread Ryan McCue
ersonally, I don't think PHP's system needs to change any time soon (or indeed, at all), unless a majority of contributors really want to. It's just a waste of time and resources otherwise. -- Ryan McCue <http://ryanmccue.info/> -- PHP Internals - PHP Runtime Development Mai

Re: [PHP-DEV] [POC - Patch] Scalar Type Hinting - A-La zend_parse_parameters

2012-03-08 Thread Ryan McCue
have significant data loss is covered by that. Bottom line: I'd personally use this, while I certainly would not use the previous style (with `(int) $foo` e.g.). -- Ryan McCue <http://ryanmccue.info/> -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Let parse_str() parse more than max_input_vars args

2012-03-14 Thread Ryan McCue
hat's something we necessarily want. -- Ryan McCue <http://ryanmccue.info/> -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Let parse_str() parse more than max_input_vars args

2012-03-15 Thread Ryan McCue
k that is a documentation issue. We already have plenty of confusion here because it isn't documented that parse_str() is affected by the max_input_vars setting. I think that is definitely a documentation issue, but the extra argument is the way to go in terms of being the least

Re: [PHP-DEV] voting without vcs accounts

2012-04-16 Thread Ryan McCue
Kris Craig wrote: An argument could be made that, as the users of PHP, they should be able to have some say in its development. As a PHP developer (that is, a developer who writes in PHP), I'd agree, *to an extent*. There are certainly things that I'd like to be able to vote on (such as addit

Re: [PHP-DEV] [RFC] skipping optional parameters

2012-04-17 Thread Ryan McCue
Stas Malyshev wrote: Basically, it allows you to do this: create_query("deleted=0", "name",,, /*report_errors*/ true); I'm a huge fan of this idea, for all the reasons listed on the RFC and one additional one: it brings normal functions in line with the syntax for list() - We can skip param

Re: [PHP-DEV] [RFC] skipping optional parameters

2012-04-18 Thread Ryan McCue
', $value => 'abc'); ...would be better. -- Ryan McCue <http://ryanmccue.info/> -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [PROPOSED] password_hash RFC - Implementing simplified password hashing functions

2012-07-13 Thread Ryan McCue
d. Somewhat off-topic, but is there a reason why not? It seems to me that introducing a new API without using PHP's best method of error handling (IMHO) is a little silly. -- Ryan McCue <http://ryanmccue.info/> -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] 6.0 And Moving Forward

2012-07-13 Thread Ryan McCue
byte-level and character-level where needed, with character-level functions based on mbstring. -- Ryan McCue <http://ryanmccue.info/> -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

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-25 Thread Ryan McCue
ng two commits in the commit history isn't that bad. (The main issue I can think of is with using `git blame`) -- Ryan McCue <http://ryanmccue.info/> -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] RFCs and organisation

2012-07-25 Thread Ryan McCue
C on how to write an RFC". If we do that, we should call them PHP RFCs (PRFCs?) instead, to avoid confusion with IETF RFCs, otherwise it may get confusing. -- Ryan McCue <http://ryanmccue.info/> -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] RFCs and organisation

2012-07-26 Thread Ryan McCue
rson who was confused when we talked about > generators RFC and thought we meant IETF RFC describing standards for > electrical generators in data centers. I meant more with regards to numbered RFCs. -- Ryan McCue <http://ryanmccue.info/> -- PHP Internals - PHP Runtime Development Mai

Re: [PHP-DEV] RFC for Adding __toString to DateTime

2012-09-03 Thread Ryan McCue
As far as I can tell, there's no standard which uses the Olson database to specify the timezone, so we'd have to create one. What about ISO8601 with the Olson timezone suffixed? 2012-09-02T18:17:36+0100 (Europe/London) 2012-09-02T18:19:05+0100 (Africa/Niamey) -- Ryan M

Re: [PHP-DEV] [VOTE] ::class feature to resolve namespaced class names to scalars

2012-09-14 Thread Ryan McCue
t I preferred __CLASS__ as well to be more in > line with what we currently have, I haven't changed my mind since the > arguments provided didn't convinced me at all. I somewhat agree; using __CLASS__ would make it more obvious that it's compile-time rather than runtime, IMO.

[PHP-DEV] Suggestion: If URL Loads Initially, then stop

2005-04-13 Thread Ryan Hemelaar
it before it's finished; then it would set the variable in the function's brackets as true. eg: Functname($URL;$trueorfalse). This could be used to check if a site is up without having to download the whole page. Regards, Ryan -- PHP Internals - PHP Runtime Development Mailing

Re: [PHP-DEV] Re: PHP 6.0 Wishlist

2005-08-12 Thread Ryan King
(or was it classkit .. I can never separate the two in my brain). PHP_Compat[http://pear.php.net/package/php_compat] would be another alternative. -ryan Speaking of *kit .. how about sandboxing or some sort of taint model. regards, Lukas -- PHP Internals - PHP Runtime Development Mailing

Re: [PHP-DEV] PHP 6.0 Wishlist

2005-08-13 Thread Ryan King
oking for a *needle* in a *haystack*. -ryan Thus: strpos(needle, haystack) is the correct way (tm) =) I agree, though I don't really care so long as its the same in all the str* and array* functions -ryan -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] CVS Account Request: phporcaffine

2005-11-03 Thread Ryan Huff
Maintaining the documentation -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Lack of read permission on main script leads to E_WARNING

2005-11-09 Thread Ryan Dingman
or our site are correct, but mistakes do happen and we want to guarantee that our customers have as good an experience as possible in the case of unexpected errors (as any enterprise site should). Thoughts? Thanks, Ryan Dingman [EMAIL PROTECTED] Next Online Mortgage Technologies -- PH

[PHP-DEV] Re: Lack of read permission on main script leads to E_WARNING

2005-11-16 Thread Ryan Dingman
I sent this message last week and haven't received a single reply. I was hoping for someone to either agree that it was a bug and advise if/when a patch would be included in PHP or explain why they believe that this is the "correct" behavior for PHP. Thanks in advance

[PHP-DEV] Patch for bug #35512

2005-12-01 Thread Ryan Dingman
Here's a patch for bug #35512. I'm hoping that this can be included in PHP 5.1.2 Thanks, Ryan Dingman [EMAIL PROTECTED] Next Online Mortgage Technologies, Inc. Index: ZendEngine2/zend.c === RCS file: /repository/Z

Re: [PHP-DEV] PHP_5_3 Branched

2007-10-07 Thread Ryan Panning
Hi, what are the chances this patch can be committed to the 5.2.x branch? I'm working on a project which can benefit from this patch but 5.3 sounds to be a ways out. Thanks, Ryan Panning Etienne Kneuss wrote: Hello, Thanks! I've that dynamic access of static members patch that

[PHP-DEV] Namespace & Type Hinting Summaries?

2008-01-12 Thread Ryan Panning
Hi, not trying to be a pest but it was very hard to keep up with all of those posts about namespaces and the other about type hinting. Was there, or is anyone able to give a quick summery of those topics? Sorry if I missed it. Thanks -- PHP Internals - PHP Runtime Development Mailing List To u

[PHP-DEV] Re: Namespace & Type Hinting Summaries?

2008-01-12 Thread Ryan Panning
Ryan Panning wrote: Hi, not trying to be a pest but it was very hard to keep up with all of those posts about namespaces and the other about type hinting. Was there, or is anyone able to give a quick summery of those topics? Sorry if I missed it. Thanks I'd like to retract my question

[PHP-DEV] bug 43053 - scientific notation

2008-03-13 Thread Ryan Brothers
ion. Appreciate any help or feedback you could provide- Thanks, Ryan -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] bug 43053 - scientific notation

2008-03-13 Thread Ryan Brothers
ething else? Ryan -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: [RFC] Namespace syntax decision

2008-03-22 Thread Ryan Panning
Lars Strojny wrote: Hi, Am Samstag, den 22.03.2008, 16:29 +0100 schrieb Marcus Boerger: [...] looks pretty good to me. Let's see what other responses we get by late wedensday. I like the current syntax and don't think it is confusing. So -1 for changing it. cu, Lars I'm also -1 on this one

[PHP-DEV] PHPDOC and SPL Documentation

2008-04-11 Thread Ryan Panning
David Coallier wrote: The only thing that Alexey asked was if there was some regenerated docs. Please, if you feel like you still have problems with SPL in the core or any other problems with documentation of extensions because of it's documentation, just start another thread. This one should be

[PHP-DEV] PHP 5.3 == PHP 6?

2008-04-11 Thread Ryan Panning
I have been wondering the answer to this question for a while now. A LOT of stuff has been backported from PHP 6 to PHP 5.3. So much in fact, why don't you just call PHP 5.3 version 6? What major new features are left for PHP 6? The big one I can think of is unicode support and dropping some d

[PHP-DEV] PHPDOC and SPL Documentation

2008-04-11 Thread Ryan Panning
Sorry, guess I need to write a new message instead of replying with a different subject. David Coallier wrote: > The only thing that Alexey asked was if there was some regenerated > docs. Please, if you feel like you still have problems with SPL in the > core or any other problems with docume

Re: [PHP-DEV] PHP 5.3 == PHP 6?

2008-04-11 Thread Ryan Panning
Lukas Kahwe Smith wrote: Native unicode is not big enough for you? regards, Lukas If you're looking for good PR and reviews, no. I think if you have very limited new features, the people writing reviews are going to say PHP 6 doesn't have much new and not worth the upgrade. IMO Honestly, I

Re: [PHP-DEV] bug 43053 - scientific notation

2008-04-21 Thread Ryan Brothers
March 2007 and first appeared in PHP 5.2.2. Would it be possible for someone to review the patch posted in the bug to see if it can be included? http://bugs.php.net/bug.php?id=43053 Thanks, Ryan -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.p

[PHP-DEV] Re: 5.3 Namespace resolution rules suggestions

2008-05-15 Thread Ryan Panning
Jessie Hernandez wrote: > Hi Stan, > > I made a proposal and patch a few months ago... The developers should really take a serious look at this issue or it will come back to haunt them later. I'm not sure why no one seems comment on your proposal and patch. It seemed like a well thought-out an

Re: [PHP-DEV] LSB forward_static_call()

2008-06-24 Thread Ryan Panning
Janusz Lewandowski wrote: nA(); } static function mB() { self::nB(); } } class B extends A { function mA() { parent::mA(); } static function mB() { parent::mB(); }

Re: [PHP-DEV] [RFC] Starting 5.3

2008-06-24 Thread Ryan Panning
Milan Babuskov wrote: Rob Richards wrote: Moving this to the windows list. I'm having problems to post on it via newsgroup interface, and I don't know how to subscribe to the mailing list, since it is not listed here: http://www.php.net/mailing-lists.php Is there a way to contact someone t

[PHP-DEV] Static Member Overloading

2008-07-11 Thread Ryan Panning
Was static member overloading added in PHP 5.3? I noticed that static method overloading was (__callStatic). The two would complement each other and it just seems natural to add these as well. I did notice that they are apart of the "static-class" RFC and a bug report, but it would be nice to s

Re: [PHP-DEV] __getStatic

2008-08-14 Thread Ryan Panning
Nathan Nobbe wrote: On Thu, Aug 14, 2008 at 4:44 PM, Timm Friebe <[EMAIL PROTECTED]> wrote: Hi again, Attached you'll find an incomplete patch against PHP_5_3 to add this functionality. If you like it let me know and I can finish it. Darn, seems the list didn't like my text/plain attachmen

[PHP-DEV] PHP 5.3 Questions

2008-08-17 Thread Ryan Panning
Hi all, I just wanted some input from this list. I'm working on a project using the latest snaps of 5.3. There are some features that I need for this project, such as LSB. I've been running into some WTF's and issues with new features. Would it be better to report all of these through the bug

[PHP-DEV] Namespace Global User Function Calls

2008-08-19 Thread Ryan Panning
I can't seem to get global user function calls to work from namespaces in the latest 5.3 snaps. This is on Win XP SP2 using Apache 2.2.8 and the php5apache2_2.dll. Example: global_file.php --- require 'namespace_file.php'; function globalFunc() { 'Global Called!'; } TestNS:

[PHP-DEV] Unable to load Intl extension

2008-08-19 Thread Ryan Panning
I am unable to load the Intl extension on Windows XP SP2 using Apache 2.2.8 and the php apache module. I have tried everything I can think of and for the life of me cannot get it to load. The Apache error log keeps spitting out this error. PHP Warning: PHP Startup: Unable to load dynamic libr

Re: [PHP-DEV] Namespace Global User Function Calls

2008-08-21 Thread Ryan Panning
Stanislav Malyshev wrote: Hi! Tried this code (adding echo before 'Global Called!' so that it would actually output something) - works just fine. I noticed that error yesterday when I was testing on another computer. It did work on this computer. I'll have to go back today to the first compu

Re: [PHP-DEV] Namespace Global User Function Calls

2008-08-21 Thread Ryan Panning
Stanislav Malyshev wrote: Hi! Tried this code (adding echo before 'Global Called!' so that it would actually output something) - works just fine. I noticed that error yesterday when I was testing on another computer. It did work on this computer. I'll have to go back today to the first compute

Re: [PHP-DEV] Unable to load Intl extension

2008-08-21 Thread Ryan Panning
Pierre Joye wrote: hi Ryan, The ICU dlls were missing from the packages. The latest snapshots have them. My apologizes for not having catched this error, I had ICU installed system wide here (not the case anymore :). Thanks for testing and for your feedbacks! Cheers, Hi, I downloaded a new

Re: [PHP-DEV] [PATCH] allow T_INLINE_HTML before T_NAMESPACE

2008-09-12 Thread Ryan Panning
David Coallier wrote: 2008/9/12 Greg Beaver <[EMAIL PROTECTED]>: Hi, This is a simple patch that allows files like this: main.php: template example Is it me or this doesn't look really clean? I have a clear idea that namespaces are there to add an extra structural layer to the code

[PHP-DEV] Re: Scoping of "use" statements and a strategy for 5.3/6.0 release of namespace

2008-09-12 Thread Ryan Panning
Stan Vassilev | FM wrote: Hi, Multiple namespaces per file were introduced to allow certain workflows in PEAR and frameworks like Symphony which can combine multiple classes and namespaces in a single package. They work like this: namespace X; ... namespace Y; ... The problem is, no on

Re: [PHP-DEV] true namespaces, yet another point of view

2008-09-23 Thread Ryan Panning
Steph Fox wrote: Lets just let it die. It is un-needed, un-wanted by many, and the end result seems to be less that optimal, or even a true implementation of namespaces. Oddly enough, I agree with Kevin with my heart and soul. But then I hear the howls of outrage from the Other Side, who campa

Re: [PHP-DEV] alpha3

2008-09-28 Thread Ryan Panning
Steph Fox wrote: I don't want to see that whole ns separator debate all over again any more than you do, but I really don't see a good way to avoid it... sorry. +1, I second this completely From someone who *was* using namespaces developing against the 5.3 branch, this is going to happen soon

Re: [PHP-DEV] namespaces and alpha3

2008-10-14 Thread Ryan Panning
Jochem Maas wrote: 1) rip them out +1 ... I concur with Steph's opinion Also +1 for taking them out. Namespaces should be saved for PHP 6 IMO as well. Now that the current namespaces have been tested there is at least a starting point for discussion. And that discussion has started as ever

Re: [PHP-DEV] namespaces and alpha3

2008-10-15 Thread Ryan Panning
Elizabeth M Smith wrote: This can be solved in three ways. 1. Greg's "leaf" solution foo::bar->baz(); - namespace foo::bar, function baz foo->bar::baz(); - namespace foo, static method bar::baz Personally I don't like this, get confusing even if we pick some weird operator like :> 2. Do

[PHP-DEV] Re: my last attempt at sanity with namespaces

2008-10-17 Thread Ryan Panning
Greg Beaver wrote: Hi, http://wiki.php.net/rfc/namespaceissues Read it and discuss. Let's be clear people: the technical problems in namespaces are limited and solvable. The problems in the political environment surrounding them may not be. Wouldn't politics be a stupid-ass reason to remove

Re: [PHP-DEV] Re: my last attempt at sanity with namespaces

2008-10-17 Thread Ryan Panning
Paweł Stradomski wrote: W liście Ryan Panning z dnia piątek 17 października 2008: Request Autoload Gets Type --- A::B:>C A::B:>C Class A::B:>func() A::BNamespace A::B:>C::CONST

Re: [PHP-DEV] Namespace issues

2008-10-20 Thread Ryan Panning
Ilia Alshanetsky wrote: Another issue I just came across caused by :: being used for both namespaces and classes is the fact when it comes to validation such as the one I've just put it for constant names, its impossible to determine if the prefix is a namespace or a class name. So, I definitel

[PHP-DEV] Destructor Order

2008-10-21 Thread Ryan Panning
I've been wondering, is such a thing even possible? Is there a good way to implement an object destruct order? Here are my thoughts: In the class definition, specify what "level" of destruction the objects should be on. How, I have no idea, I haven't thought of a good syntax. It should be an i

[PHP-DEV] Re: Destructor Order

2008-10-24 Thread Ryan Panning
Ryan Panning wrote: I've been wondering, is such a thing even possible? Is there a good way to implement an object destruct order? Here are my thoughts: In the class definition, specify what "level" of destruction the objects should be on. How, I have no idea, I haven'

[PHP-DEV] Namespace Resolution

2008-11-04 Thread Ryan Panning
First, I want to say thanks for determining the best separator. Even though it's not what everyone would like, it's what would work best. Second, sorry for starting a new thread. To me, continuing the resolution discussion in the "namespace separator and whining" isn't the correct place. Thi

[PHP-DEV] Re: Namespace Resolution

2008-11-04 Thread Ryan Panning
Just to make my post clear, I'm in favor of this approach for non-qualified calls in a namespace. 1. global 2. autoload 3. fail -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Required Library Versions?

2013-10-28 Thread Ryan McCue
Pierre Joye wrote: > See https://github.com/php/php-src/blob/master/win32/build/libs_version.txtor > in the respective branch, tag or release. Thanks a bunch! -- Ryan McCue <http://ryanmccue.info/> -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe,

Re: [PHP-DEV] Funny array function

2012-09-30 Thread Ryan McCue
while (($key = array_shift($keys)) !== null) { $array =& $array[$key]; } return $array; } (Not tested. It will fail if the key doesn't exist, you can optionally check that and fail however you'd like.) -- Ryan McCue <http://ryanmccu

Re: [PHP-DEV] RFC: ext/mysql deprecation

2012-11-13 Thread Ryan McCue
6%): http://wordpress.org/about/stats/ -- Ryan McCue <http://ryanmccue.info/> -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] RFC: ext/mysql deprecation

2012-11-16 Thread Ryan McCue
ttp://core.trac.wordpress.org/ticket/21663 -- Ryan McCue <http://ryanmccue.info/> -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] RFC: ext/mysql deprecation

2012-11-16 Thread Ryan McCue
Rasmus Lerdorf wrote: > On 11/16/2012 01:34 AM, Ryan McCue wrote: >> Pierre Joye wrote: >>> Wordpress lead developer statement is rather clear: Go ahead, we will >>> follow. >> >> Indeed, we have patches written already [1], but they were low priority. >

Re: [PHP-DEV] [RFC] Reflection annotations reader

2013-01-06 Thread Ryan McCue
string > */ > > Will be : array( 'Route("/")' => "", 'ORM(Key="foo")' => "", "var" => > "string" ) What about repeated keys? i.e: @param int $a @param string $b -- Ryan McCue <http://ryanmccue.info/> -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Was Reflection annotations reader - We Need A Vision

2013-01-10 Thread Ryan McCue
x27;ve dealt with this in the past and we'll continue to do so. -- Ryan McCue <http://ryanmccue.info/> -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Voting periods

2013-01-28 Thread Ryan McCue
, but it wouldn't change much of WordPress internally. Anonymous functions, e.g., are fairly incompatible with the way we implement the Mediator pattern with our hooking system. Namespaces might be implemented for new code, but there's basically zero chance for the existing code base. -- Ryan McCue <http://ryanmccue.info/> -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Voting periods

2013-01-28 Thread Ryan McCue
Larry Garfield wrote: > Hi Ryan. While I understand that level of conservatism, I think it is > somewhat unfounded. The PHP community at large decided to deprecate PHP > 4 en masse, and put hosts on notice. It worked, too. The GoPHP5 project > included over 100 projects and 20

Re: [PHP-DEV] Voting periods

2013-01-28 Thread Ryan McCue
ou need to pass in the exact callback that you registered it with; with closures, this isn't possible unless they're assigned to a variable, which defeats the purpose. > Maybe next year it will be time for a GoPHP5.5 project. :-) Hopefully by > then WP will have become less conser

Re: [PHP-DEV] [RFC] Integrating Zend Optimizer+ into the PHP distribution

2013-01-29 Thread Ryan McCue
t with 3.5.1 (the latest release)? (My guess is that it will show WP being slower and with a more dramatic improvement.) Thanks, -- Ryan McCue <http://ryanmccue.info/> -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Voting periods

2013-01-29 Thread Ryan McCue
ith the other developers. -- Ryan McCue <http://ryanmccue.info/> -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Give the Language a Rest motion (fwd)

2013-02-20 Thread Ryan McCue
I have two HTTP message parsers that I maintain, and neither of them use goto. Certainly possible to avoid it there. That said, I do think goto has legitimate uses, even if I don't need it. -- Ryan McCue <http://ryanmccue.info/> -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Language constructs and callability

2013-07-19 Thread Ryan McCue
d* performance penalty) Is there a reason that echo/print couldn't be implemented as functions with some sort of backwards compatibility layer? isset/etc make sense to be language constructs, but I can't think of any reason echo/print need to be. -- Ryan McCue <http://ryanmccue.info

Re: [PHP-DEV] Language constructs and callability

2013-07-19 Thread Ryan McCue
erm. That's what I meant by the "backwards compatibility layer". Not saying we have to deprecate the use as a construct, but why can't we enable the use as a function (and hence, callback, etc)? It feels less cleaner from my point of view (userland). -- Ryan McCue <http://r

Re: [PHP-DEV] [RFC] Named parameters

2013-09-06 Thread Ryan McCue
although you can map them if you need to change a key). All this does is add first-class support in the language. Huge +1 for this feature and thank you to Nikita for working on the RFC. -- Ryan McCue <http://ryanmccue.info/> -- PHP Internals - PHP Runtime Development Mailin

Re: [PHP-DEV] Support for keywords where possible

2013-09-12 Thread Ryan McCue
would those be T_STRINGs now? I can think of a bunch of userland stuff (basically every documentation generator) that will break if the class/function name is not a T_STRING. That said, +1 for the feature, great idea. -- Ryan McCue <http://ryanmccue.info/> -- PHP Internals - PHP Runtime Develop

  1   2   3   >