[PHP-DEV] Patch for bug report #35243

2005-11-18 Thread David
ng a patch. Thanks, David Oren uuencoded: begin 666 patch-35243.diff M+2TM("XO97AT+W-T86YD87)D+V)A'0Ohttp://www.excite.com The most personalized portal on the Web! -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Patch for bug report #35243

2005-11-18 Thread David
As requested, the patch as a plain-text MIME attachment. Unfortunately, I don't have easy access to a public server where I can post the file. David. --- On Fri 11/18, Wez Furlong < [EMAIL PROTECTED] > wrote: From: Wez Furlong [mailto: [EMAIL PROTECTED] To: [EMAI

RE: [PHP-DEV] CVS Account Request: davidw

2007-09-24 Thread David
> -Original Message- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Sebastian Bergmann > Sent: Monday, September 24, 2007 12:26 PM > To: internals@lists.php.net > Subject: Re: [PHP-DEV] CVS Account Request: davidw > > Yiduo (David) Wang schrieb: > > Imple

Re: [PHP-DEV] JSON inclusion in core

2006-01-21 Thread David
oth cases I think if neither a serializing interface is implemented, nor are valid "classes" provided to decode() it should work like today via StdClass. Just as the classmap option for ext/soap? Regards, David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DEV] Dismantling the lies...

2007-05-20 Thread David
Hi, I'm David Wang and I'm one of the students that is participating in Google Summer of Code for this summer. My project addresses detecting reference cycles in PHP, and I'm following this discussion because it seems very pertinent to what I will be working with this summer

RE: [PHP-DEV] toString() and Object #ID

2007-07-01 Thread David
of handlers for that object (basically the "type" of the object), so there's reasonable confidence that a unique hash will be generated. It looks like it's independent of the actual properties, etc. of the object. Spl_object_hash is what you guys want. David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DEV] toString() and Object #ID

2007-07-02 Thread David
t is in the SPL and not in the engine does lead one to believe that it might do more than simply hashing the handler table and handle tuple. People might think it hashes the properties as well. David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DEV] Mid-term Update for Cycle Collector (Google Summer of Code Project)

2007-07-12 Thread David
implementation and that struct is copied around a lot. Most notably, this causes an annoying 5% slow down in bench.php. I'm not certain what real world impact this has, but data with the php.ini option zend.enable_gc set to 0 would be very helpful. David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DEV] Mid-term Update for Cycle Collector (Google Summer of Code Project)

2007-07-12 Thread David
7;s very unlikely for the main garbage collection cycle to be run if there are no cycles present. (I can go into some technical details if you'd like). David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DEV] Mid-term Update for Cycle Collector (Google Summer of Code Project)

2007-07-12 Thread David
Hi, > -Original Message- > From: Andi Gutmans [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 12, 2007 9:06 PM > To: David; Scott MacVicar > Cc: Stas Malyshev; Sebastian Bergmann; internals@lists.php.net > Subject: RE: [PHP-DEV] Mid-term Update for Cycle Collector (

RE: [PHP-DEV] [PATCH] Converting accesses to refcount and is_ref to macros

2007-07-14 Thread David
. My reasoning was that it would be best not to redefine what that macro operates on and just add _NP versions. However, this can be changed around fairly easily. David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DEV] [PATCH] Converting accesses to refcount and is_ref to macros

2007-07-14 Thread David
acros for marking, unmarking and setting the boolean to an argument are necessary because one of the possible optimizations for gc is to use the unused bits of the is_ref uchar to store gc information and there would be certain optimizations for using three macros instead of just the last one. David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DEV] zend_language_scanner.c (WAS: buildconf hell)

2007-07-19 Thread David
quot;. In my experience, this line returns without error but performs nothing. If you manually execute the line in the Makefile (substituting the appropriate variables), you'll have a zend_language_scanner.c and things will be happy. David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DEV] zend_language_scanner.c (WAS: buildconf hell)

2007-07-19 Thread David
he story is probably to add zend_language_scanner.c to CVS. David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DEV] buildconf hell

2007-07-19 Thread David
What about adding the files generated by flex to CVS? Most people don't need to regenerate those files anyway, and this way they could keep the newer version of flex on their machine. > Downgrading flex to 2.5.4a-r6... > > seems to have fixed the issue. > > I'm running make test right no

[PHP-DEV] Re: pfpro issuing E_ERROR when E_WARNING would be more appropriate

2003-07-13 Thread David
These errors are thrown when the user is passing illegal variable types, please explain why you think they should be warnings. Even silently converting them to other types would make no sense in these cases. David (marc doesn't show e-mail addresses so I can't cc the submitter)

[PHP-DEV] internal API documentation

2004-01-08 Thread david
eally do without looking at the actual PHP source, if possible. david -- sub'_{print"@_ ";* \ = * __ ,\ & \} sub'__{print"@_ ";* \ = * ___ ,\ & \} sub'___{print"@_ ";* \ = * ,\ & \} sub'{print"@_,\n"}&{_+Just}(ano

Re: [PHP-DEV] internal API documentation

2004-01-09 Thread david
t doesn't look like so. the extension doc there is pretty much the same as what is in php.net david -- sub'_{print"@_ ";* \ = * __ ,\ & \} sub'__{print"@_ ";* \ = * ___ ,\ & \} sub'___{print"@_ ";* \ = * ,\ & \} sub'_

[PHP-DEV] why MSHUTDOWN isn't called?

2004-01-16 Thread david
art apache the only differences is that in the second version, i stop apache before copying the new .so over. why does it matter? step 4 of my first version should have unloaded the old .so from memory and then picks up the new .so in step 5, but it's not doing that. does anyone know

[PHP-DEV] remote user

2004-02-20 Thread david
direction I go, the door is closed. What is really frustrating is that it IIS does this out of the box! Thank you for any pointers! david The environment is: Server: Apache/2.0.48 (Win32) mod_perl/1.99_12 Perl/v5.8.3 mod_ssl/2.0.48 OpenSSL/0.9.7c. Clients are Windows Workstations. -- PHP Internals

[PHP-DEV] Re: Perl extension

2004-03-03 Thread david
returns an array back to $k because the last expression of the Perl code evaluates to an array reference. scalars are returned by value: $k = p2p_eval("'x1234y' =~ /(\d+)/; $1"); print_r($k); prints: 1234 this way, i don't have to concern about what context the PHP code i

Re: [PHP-DEV] [RFC][VOTE][RESULT] Removal of dead or not yet PHP7 ported SAPIs and extensions

2015-02-10 Thread David Muir
p.net/unsub.php > Does this mean PHP will be taking on the role of maintaining libmcrypt as well? If a security issue is found, what is the course of action? Cheers, David Sent from my iPhone -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Allow "tightening" of PHP_INI_SYSTEM directives in PHP_INI_PERDIR+ contexts?

2015-02-24 Thread David Zuelke
ot;1" in system) - disable_functions/classes (only additions to the list allowed) Thoughts? David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-03-01 Thread David Zuelke
+1000 on this; so much better than the BaseException stuff! > On 27.02.2015, at 15:31, Sebastian Bergmann wrote: > > Am 23.02.2015 um 19:15 schrieb Nikita Popov: >> Voting on the engine exceptions RFC, which proposes to convert existing >> fatal and recoverable fatal errors into exceptions, has

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-03-09 Thread David Zuelke
Why not wait with the merge until a consensus emerges regarding Throwable? > On 09.03.2015, at 05:26, Nikita Popov wrote: > > On Mon, Feb 23, 2015 at 7:15 PM, Nikita Popov wrote: > >> Hi internals! >> >> Voting on the engine exceptions RFC, which proposes to convert existing >> fatal and rec

[PHP-DEV] [RFC][DISCUSSION] Add preg_replace_callback_array function

2015-03-15 Thread David Dai
Hi internals, The RFC to add a user-land function for an easy-to-use and reliable preg_replace_callback_array() in PHP is up for discussion: https://wiki.php.net/rfc/preg_replace_callback_array This proposes adding one function: `preg_replace_callback_array()` that is the better way to Implement

Re: [PHP-DEV] STH and the 3 RFCs

2015-03-16 Thread David Muir
lly where you've set up a custom, per-file error handler where COERCIBLE_TYPE_MISMATCH notices are turned into fatal errors. It is your code that decides which error handler to use. Cheers, David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] About declare(strict_types = 1)

2015-03-16 Thread David Muir
into your application and test/audit every code path, and the hope you catch everything. It was a global setting, removing it was a *huge* BC break, and its use was undetectable. None of which is the case with dual mode. There's no global setting, there's no BC with removing it, and it's use is *extremely* easy to detect! Cheers, David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] STH and the 3 RFCs

2015-03-16 Thread David Muir
> On 17 Mar 2015, at 1:33 am, Thomas Punt wrote: > > Hey David, >> A library written in weak or strict mode will have no bearing on its public >> API. > > Strictly speaking (pun intended), this is not true. A library can easily > expose a > facade that enforc

Re: [PHP-DEV] [RFC][Accepted] Scalar Type Declarations V0.5

2015-03-18 Thread David Muir
ot;); // will give an error > ?> > > Could someone knowledgeable shed light on this? > > Regards, > > -- > Yasuo Ohgaki > yohg...@ohgaki.net Shed light on what exactly? Why it behaves this way? The second file passes because it is in the default weak mode, so it w

Re: [PHP-DEV] Adding weekdays to DateTime resets the time

2015-05-04 Thread David Lundgren
There is actually already a bug for about this: https://bugs.php.net/bug.php?id=54909 I ran into this several months ago when I upgraded a project from 5.3.2 to 5.5 and found that in 5.3.6 the behavior had changed. I ended up working around it in my code. It was definitely annoying but had we upgr

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-05-08 Thread David Zuelke
gly, because voting was already underway. And then we collectively dropped the ball when it came to remembering to do this little Throwable proposal and change. Think of it more as just a few renames to fix engine exceptions before they go out. David P.S. *bump* by the way ;) > On 30.04.20

Re: [PHP-DEV] Branching off PHP7 and electing RMs

2015-05-13 Thread David Zuelke
But an alpha timeline sounds good ;) > On 13.05.2015, at 16:32, Pierre Joye wrote: > > On May 13, 2015 7:57 PM, "Julien Pauli" wrote: >> >> Hello people. >> >> Time is going, and summer is coming. >> >> I think we must have branched 7.0 until end of May, and have our 2 RMs >> elected. >> >

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

2015-05-14 Thread David Muir
The problem you’re describing is not new and exists today with libraries using code like this: function foo($int) { if(!is_int($int)) { throw new InvalidArgumentException(‘Parameter must be of type int’); } //… do something with $int } Cheers, David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] RFC: Initialize objects by using an object initializer.

2015-06-26 Thread David Rodrigues
Hello, I tried to register in RFC Wiki but I get the error "That wasn't the answer we were expecting", but in all cases, I'm David Rodrigues, and I like to suggest a method to initialize objects by using an object initializar. Currently it is supported on C#

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

2015-07-16 Thread David Zuelke
Since I'm working on something related... what's the verdict here? :) > On 20.04.2015, at 20:00, Jakub Zelenka wrote: > > Hi, > > On Thu, Apr 16, 2015 at 1:21 PM, Pierre Joye wrote: > >> On Thu, Apr 16, 2015 at 6:27 PM, François Laupretre >> wrote: De : Pierre Joye [mailto:pierre@

Re: [PHP-DEV] PCRE JIT stack size limit

2015-07-24 Thread David Zuelke
On 24.07.2015, at 09:33, Adam Harvey wrote: > > On 23 July 2015 at 11:47, Christoph Becker wrote: > >> Therefore I tend to prefer a new ini setting (say, pcre.jitstack_limit). >> That would mean, however, to add yet another ini setting, of which >> there are already so many. > > I'm not a big

Re: [PHP-DEV] Re: Voting choice for language changes (Was: "Re: [PHP-DEV][RFC][DISCUSSION] Strict Argument Count")

2015-07-25 Thread David Muir
gt;> >> My 2 cents: why do you have "RestException" with "Exception" suffix >> and then don't have the same suffix on the other exception names? This >> unpredictable exception hierarchy is the "ugly" part and subtle >> alternative synt

Re: [PHP-DEV] strrchr with needle with multiple characters

2024-09-02 Thread David CARLIER
Hi, On Mon, 2 Sept 2024 at 12:20, Vincent Langlet wrote: > I was today old when I discovered the big difference between strchr and > strrchr in the way they handle needle with multiple characters. > > It's explained in the doc > https://www.php.net/manual/en/function.strrchr.php > - If needle co

Re: [PHP-DEV] [RFC] Change Directory class to behave like an opaque object

2024-09-14 Thread David CARLIER
Seems right thing to do. I saw some usage like final class Dir extends Directory { } also did not see much in *new* codes Directory being extended so 8.5 sure. Cheers. On Sat, 14 Sept 2024 at 16:36, Gina P. Banyard wrote: > Hello internals, > > I came across the Directory class while doing s

Re: [PHP-DEV] Local time zone

2011-12-19 Thread David Muir
ort enabled "Olson" Timezone Database Version 2010.9 Timezone Database internal Default timezone UTC Sigh... Ubuntu however reports 0.system as the tz version. Does that mean that PHP there is using the system's tz database instead? Cheers David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Constant arrays

2011-12-20 Thread David Muir
uldn't be constant any more as a change to one > variable inside it would change its own meaning value. > > Julien.P > > A constant can only contain static values. There was no mention of variables. Isn't a "constant" array basically the same as an Enum? David --

Re: [PHP-DEV] Suhosin patch disabled by default in Debian php5 builds

2012-02-04 Thread David Ramalho
ing, I don't care much for ego's , not when it means things go slower instead of faster, AS A USER, I would really like for sense to come in somewhere soon, and to see PHP moving forward, faster and better :) , and I'm sure the right people are gathered here to (keep) doing it

Re: [PHP-DEV] About CVE-2012-0831 (magic_quotes_gpc remote disable vulnerability?)

2012-02-15 Thread J David
On Tue, Feb 14, 2012 at 8:35 AM, Ferenc Kovacs wrote: > as far as I can see the referenced fix ( > http://svn.php.net/viewvc?view=revision&revision=323016) never made to the > 5.3.10 release ( > http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3_10/?pathrev=323032&view=log > ) Preface: I am n

Re: [PHP-DEV] About CVE-2012-0831 (magic_quotes_gpc remote disable vulnerability?)

2012-02-15 Thread J David
On Thu, Feb 16, 2012 at 2:33 AM, Rasmus Lerdorf wrote: > On 02/15/2012 11:24 PM, J David wrote: >> The specific circumstance was that magic_quotes_gpc was being set to >> off in Apache via php_flag, rather than in the .ini file.  phpinfo() >> reported magic_quotes_gpc as Off

Re: [PHP-DEV] PHP 5.4.0 released!

2012-03-01 Thread David Muir
Wohoo!!! Congrats everyone! Bye bye magic quotes! David ps. Now to get my host to upgrade to 5.3 grumble grumble! On 02/03/12 10:29, David Soria Parra wrote: > Hello! > > The PHP Development Team would like to announce the immediate > availability of PHP 5.4.0. This release is

Re: [PHP-DEV] PHP 5.4.0 released!

2012-03-01 Thread David Muir
for several methods http://au.php.net/manual/en/migration54.new-extensions.php nothing listed http://au.php.net/manual/en/migration54.extensions-other.php "The following extensions can no longer be disabled during build configuration: " but only one empty list element Cheers, David

Re: [PHP-DEV] PHP 5.4.0 released!

2012-03-01 Thread David Muir
Ah, cool. That explains it. I noticed I was on the Australian mirror, but then thought, "nah, can't be because of that..." ;-) Cheers, David On 02/03/12 11:26, Philip Olson wrote: > The mirrors have not yet updated, which is why the announcement > linked specifically t

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

2012-03-01 Thread David Muir
I can't comment on the internal implementation, but I like the use of the casting syntax. It's not as pretty, but make the intent clear, and there's not BC issues with class names. David On 02/03/12 14:48, Anthony Ferrara wrote: > Hey all, > > I know given all the dis

Re: [PHP-DEV] [RFC] New .phpp File Type for Pure-Code PHP Scripts

2012-04-12 Thread David Muir
bedded PHP? > It might be good if PHP is more tolerant for this usage. > > Regards, > > -- > Yasuo Ohgaki > yohg...@ohgaki.net > That's a huge WTF that a templating library can't be written as .phpp, because it then won't be able to load a template. David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: Disabling PHP tags by php.ini and CLI options

2012-04-12 Thread David Muir
ta-daa - PHP EMBEDDED IN HTML CODE! > I was wondering when someone was going to point that out. ;-) David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [RFC] New .phpp File Type for Pure-Code PHP Scripts

2012-04-12 Thread David Muir
On 13/04/12 10:04, Kris Craig wrote: > > > On Thu, Apr 12, 2012 at 4:46 PM, David Muir <mailto:davidkm...@gmail.com>> wrote: > > On 13/04/12 09:38, Yasuo Ohgaki wrote: > > Hi, > > > > 2012/4/13 Kris Craig <mailto:kris.cr...@gmail.c

Re: [PHP-DEV] [RFC] New .phpp File Type for Pure-Code PHP Scripts

2012-04-12 Thread David Muir
On 13/04/12 11:03, Kris Craig wrote: > > > On Thu, Apr 12, 2012 at 5:46 PM, David Muir <mailto:davidkm...@gmail.com>> wrote: > > On 13/04/12 10:04, Kris Craig wrote: >> >> >> On Thu, Apr 12, 2012 at 4:46 PM, David Muir > <mailto:davidkm

Re: [PHP-DEV] Re: Disabling PHP tags by php.ini and CLI options

2012-04-12 Thread David Muir
On 13/04/12 14:55, Stas Malyshev wrote: > Hi! > >> If this is a pecl module library developers cannot use it and trust >> that on php 5.n, it just works. That would fork the language in an >> undesirable way. It should be a core feature, no ini flag, no >> sometimes-there module. > PHP 5.n is at le

Re: [PHP-DEV] [RFC] New .phpp File Type for Pure-Code PHP Scripts

2012-04-12 Thread David Muir
6 won't stop you from writing > disorganized code if you still want to. What this will do is provide a > valuable option for people who do feel that writing clean, role-segregated > code is important. So basically, the only parts that might be ok to write as .phpp are some model and utility classes? David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [RFC] New .phpp File Type for Pure-Code PHP Scripts

2012-04-15 Thread David Muir
On 14/04/12 03:41, Kris Craig wrote: > > > On Thu, Apr 12, 2012 at 11:37 PM, David Muir <mailto:davidkm...@gmail.com>> wrote: > > On 13/04/12 15:13, Kris Craig wrote: > > Again, the controller should NOT be a .phpp file. Likewise, > your model >

Re: [PHP-DEV] Re: internals Digest 13 Apr 2012 01:23:19 -0000 Issue 2650

2012-04-15 Thread David Muir
eyword solution, which I think is the direction the discussions of both Yasuo and Tom's RFCs were heading. >From a technical standpoint, I can see that as being acceptable (using keywords and removing include restrictions), but from a practical standpoint, I'm still not seeing the

Re: [PHP-DEV] Re: Some Stats

2012-04-17 Thread David Coallier
Great work everyone :) On 17 April 2012 12:44, David Soria Parra wrote: > On 2012-04-17, Rasmus Lerdorf wrote: >> Number of posts to the commit list since Jan.1,2012 (top 25): >> > > Number of commits to php-src (excluding merges) since Jan.1,2012 (top 15): > >

[PHP-DEV] Persist context across threads?

2012-05-14 Thread David Rueter
thread Is it safe to assume that the context of a terminated thread will not be destroyed or overwritten as long as ts_free_thread is not called? Thanks in advance, David R. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] BreakIterator

2012-05-31 Thread David Muir
in a ICU namespace, then it's not a problem, as it's clearly related to Unicode. Cheers, David On 31/05/12 21:21, Gustavo Lopes wrote: > Hi > > I've wrapped ICU's BreakIterator and RuleBasedBreakIterator. I stopped > short of adding a procedural interface. I think th

Re: [PHP-DEV] List comprehensions and generator expressions for PHP

2012-06-28 Thread David Muir
I'd assume that array_map() only works with arrays, while list comprehension should work with anything traversable. David On 28/06/2012, at 10:43 PM, Sebastian Krebs wrote: > Hi, > > Whats the difference to the (already existing) function array_map() (except > the syntax

Re: [PHP-DEV] Re:[PHP-DEV] List comprehens​ions and generator expression​s for PHP

2012-06-28 Thread David Muir
ython just go to use python > Try again, this time with less knee-jerk and more brain: Why is this a bad feature? How will it make PHP worse? What is so bad about it that it outweigh the benefits? Is it the syntax you don't like, or the concept? Cheers, David -- PHP Internals - PHP

Re: [PHP-DEV] List comprehensions and generator expressions for PHP

2012-06-28 Thread David Muir
On 28/06/12 23:45, Sebastian Krebs wrote: > Hi, > > 2012/6/28 David Muir > >> I'd assume that array_map() only works with arrays, while list >> comprehension should work with anything traversable. >> > That sounds more like a "bug" (better: "

Re: [PHP-DEV] array_shift() and reindexing

2012-07-12 Thread David Muir
What about replacing the existing array with array_slice? David On 12/07/2012, at 9:43 PM, Jille Timmermans wrote: > Hello, > > array_shift() currently reindexes the array after shifting one element. The > reindexing has quite some impact on it's performance. I would like

Re: [PHP-DEV] Internal iteration API

2012-07-12 Thread David Muir
On 13/07/12 01:04, Matthew Weier O'Phinney wrote: > On 2012-07-12, Sara Golemon wrote: >> --e89a8f235453d7a80104c4975c55 >> On Wed, Jul 11, 2012 at 5:39 PM, Anthony Ferrara wrote: >>> One thing to keep in mind when doing this is to think about consistency. >>> I think that's a huge point not to be

Re: [PHP-DEV] 6.0 And Moving Forward

2012-07-16 Thread David Muir
$array = array('foo' => 'bar'); $object = (object) $array; echo $array['foo']; //bar echo $array->foo; //bar echo $object['foo']; //bar echo $object->foo; //bar Is there a technical reason for the difference that currently exists? Cheers, David -- PHP I

Re: [PHP-DEV] 6.0 And Moving Forward

2012-07-17 Thread David Muir
), some will be able to run PHP5+ but will still be marketed as PHP6. Makes it that much harder to know if your code will run on a client's server. David On 18/07/12 00:04, Anthony Ferrara wrote: I dislike this idea from the ground up. While I think having a legacy implementation is defin

Re: [PHP-DEV] Pseudo-objects (methods on arrays, strings, etc.)

2012-07-18 Thread David Muir
th some actual implementation details that make sense. -Rasmus Which is the needle, and which is the haystack? $pos = strpos($string, 'a'); $pos = strpos('a', $string); vs $pos = $string->pos('a'); $pos = 'a'->pos($string); I'm not proposing

Re: [PHP-DEV] Pseudo-objects (methods on arrays, strings, etc.)

2012-07-19 Thread David Muir
ring('foo'); $bar = $foo->toUpper(); echo $foo; //foo echo $bar; //FOO So far we only have the toString magic method. If we had the others, you could conceivably do this all in userland (at a fairly high performance cost I would assume). Cheers, David -- PHP Internals - PHP R

Re: [PHP-DEV] Older style frameworks ...

2012-08-25 Thread David Zülke
s is a mailing list, not a group therapy session for people who didn't update their code regularly. David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Combined assignment operator for short ternary

2012-08-25 Thread David Muir
lse >>>function bar ($limit = 50) { /* code */ $foo($limit); /* code */} >>>// Even somewhere else >>>bar(); >>> >>> >>> same here. >> >> >> Same here :p >> >> >>> >>> -- >>> Ferenc Kovács >>> @Tyr43l - http://tyrael.hu >> >> >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >> > > So you are saying that your (teams) IDE doesn't tell you the method > signature which contains also the default values? > I guess that the fact that many of the php core functions have optional > arguments and non null defaults must be really a PITA for you. I think what he was alluding to is the problem where one changes the default. All usages of the method/function then need to be updated. Using null today is very much like using the proposed 'default' parameter skipping RFC. Cheers, David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Older style frameworks ...

2012-08-26 Thread David Coallier
my moaning ... PHP created the problems > 'full stop' > Ok, I believe your views have been expressed clearly and for the sanity of the mailing-list I'd consider stopping this thread. I would however suggest that you create an RFC which outlines exactly what you'd like

Re: [PHP-DEV] Support negative indexes for arrays and strings

2012-09-02 Thread David Zülke
On 03.09.2012, at 01:11, sle...@pipeline.com wrote: >> I see how this may work for strings and simple vectors, but what about this: >> >> $a = array(-1 => "foo", -2 => "bar"); echo $a[-1]; >> >> It should keep returning "foo", right? So then the question is - what >> $array[-1] actually means?

Re: [PHP-DEV] Re: Support negative indexes for arrays and strings

2012-09-04 Thread David Zülke
as the sole member, not the last item itself. David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Contributing

2005-04-01 Thread David Mytton
website.// // //How should I go about getting involved?// // //Thanks,// David Mytton// -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: cvs: ZendEngine2 / Zend.m4 php-src acinclude.m4

2005-04-01 Thread David Sklar
On Feb 27, 2005 8:19 AM, Jani Taskinen <[EMAIL PROTECTED]> wrote: > On Sun, 27 Feb 2005, Sebastian Bergmann wrote: > > > Jani Taskinen wrote: > >> AC_MSG_WARN([You will need bison 1.28, 1.35, 1.75 or 1.875 if you want > > > > bison 2.0 also works (at least for me). > > Let's not add that to

Re: [PHP-DEV] Re: cvs: ZendEngine2 / Zend.m4 php-src acinclude.m4

2005-04-04 Thread David Sklar
On Apr 2, 2005 1:55 AM, Jani Taskinen <[EMAIL PROTECTED]> wrote: > On Fri, 1 Apr 2005, David Sklar wrote: > > > On Feb 27, 2005 8:19 AM, Jani Taskinen <[EMAIL PROTECTED]> wrote: > >> On Sun, 27 Feb 2005, Sebastian Bergmann wrote: > >> > >>>

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

2005-04-13 Thread David Zülke
http://www.php.net/manual/en/function.get-headers.php - David > -Original Message- > From: Ryan Hemelaar [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 13, 2005 2:55 PM > To: internals@lists.php.net > Subject: [PHP-DEV] Suggestion: If URL Loads Initially, then sto

RE: [PHP-DEV] Summer of Code

2005-06-04 Thread David Zülke
ntation be incorporated into a future release? What would be the perquisites? IIRC, one reasons why namespaces were dropped back then was because there was no agreement on how import/"using" would work exactly, right? - David > -Original Message- > From: Andi Gutmans [mailt

RE: [PHP-DEV] PHP 5.1

2005-06-05 Thread David Zülke
How about bundling PIMP with 5.1? ;o) - David > -Original Message- > From: Pierre-Alain Joye [mailto:[EMAIL PROTECTED] > Sent: Sunday, June 05, 2005 11:55 PM > To: internals@lists.php.net; Derick Rethans > Subject: Re: [PHP-DEV] PHP 5.1 > > On Sun, 5 Jun 2005

[PHP-DEV] CVS Account Request: davidc

2005-06-06 Thread David Coallier
Ok I'm registering because I am now a new MDB2_Driver_mssql maintainer and I would need cvs access to update, commit my stuff when I code a bugfix or new feature. Thank you very much. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DEV] PHP 5.1

2005-06-07 Thread David Zülke
, it might be their doom - if so, well, I don't care at all. I vote +1 for goto, and +712636 for ifsetor. - David > -Original Message- > From: Jason Garber [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 07, 2005 5:29 PM > To: Jared Williams > Cc: 'Sascha Schu

[PHP-DEV] [PATCH] allow array_reduce to have a mixed starting value

2005-06-26 Thread David Tulloh
. All the tests passed with this modification (that passed without it). I also included a test file which tests the new functionality and provides a few examples of what it could be useful for. David Index: ext/standard/array.c === RCS

RE: [PHP-DEV] Bringing the 'include' discussion to an end

2005-06-30 Thread David Zülke
er and will come to you. And you know how to avoid these security problems. What's the point of this entire discussion for Pete's sake. You can just as well stab your eye out with any fork in the world, and that's not a reason to abolish them, right? The discussion is stupid

[PHP-DEV] serialize extension objects?

2005-07-05 Thread David Olsson
at someone could point me in the right direction. Or have I completely misunderstood the entire concept; when storing a reference to an object (implemented in C/C++), do the object really have to be serialized? Thanks for all tips! :-) Best regards David Olsson -- PHP Internals - PHP Runtime D

RE: [PHP-DEV] YANP (Yet Another Namespace Proposal)

2005-07-07 Thread David Zülke
and use it, I guess. Other than that, I don't see any problems so far. Does a My:Nested:Namespace:Class::staticMethod() work? Nice work man, keep it up, let's hope we can finally have some namespaces/packaging support in PHP ;) I wish you luck. +1 from me. - David P.S: check out http

RE: [PHP-DEV] YANP (Yet Another Namespace Proposal)

2005-07-07 Thread David Zülke
Oh and to those who are just about to shout "clashes with ternary operator": $bar = new $foo ? Foo : Bar; doesn't work in PHP. - David > -Original Message- > From: David Zülke [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 07, 2005 9:32 AM > To: internals@

RE: [PHP-DEV] php 4.4 BC break

2005-07-16 Thread David Zülke
error_reporting/display_errors should be disabled on production environments anyway, so where's the problem. And on dev machines, people will finally realize they did something stupid. It's up to them to fix it or not to fix it. - David > -Original Message- > From: Ron

RE: [PHP-DEV] [PATCH] Namespace Patch, Beta 1

2005-08-02 Thread David Zülke
This sounds awesome. Good job, Jessie. Keep it up! - David > -Original Message- > From: Jessie Hernandez [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 02, 2005 6:07 AM > To: internals@lists.php.net > Subject: [PHP-DEV] [PATCH] Namespace Patch, Beta 1 > > A

RE: [PHP-DEV] Re: RC1, instanceof?

2005-08-08 Thread David Zülke
+1 > -Original Message- > From: Pierre-Alain Joye [mailto:[EMAIL PROTECTED] > Sent: Monday, August 08, 2005 9:32 AM > To: internals@lists.php.net > Subject: [PHP-DEV] Re: RC1, instanceof? > > On Fri, 05 Aug 2005 13:52:13 -0700 > [EMAIL PROTECTED] (Andi Gutmans) wrote: > > > Hi all, > > >

RE: [PHP-DEV] type hinting throwing a fatal error

2005-08-08 Thread David Zülke
+1 > -Original Message- > From: Derick Rethans [mailto:[EMAIL PROTECTED] > Sent: Monday, August 08, 2005 11:50 AM > To: PHP Developers Mailing List > Subject: [PHP-DEV] type hinting throwing a fatal error > > Hei, > > currently if you pass a wrong object's type to a typehinted parameter:

RE: [PHP-DEV] PHP 5.5 or 6.0

2005-08-09 Thread David Zülke
6.0 if the Namespaces patch makes it in, 5.5 with Unicode only? ;) - David > -Original Message- > From: Derick Rethans [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 09, 2005 10:41 AM > To: PHP Developers Mailing List > Subject: [PHP-DEV] PHP 5.5 or 6.0 > > Now

RE: [PHP-DEV] PHP 5.5 or 6.0

2005-08-09 Thread David Zülke
I was just kidding. I too consider Unicode support a very drastic change that deserves a new major version number. I'd like to see Namespaces support in by then, too, though. I really think PHP needs it. These two "features" are the only things PHP needs desperately, but cannot de

RE: [PHP-DEV] Re: PHP 5.5 or 6.0

2005-08-09 Thread David Zülke
> 6.0 - to define, for now we have two candidates, > unicode for sure, namespace to be discussed/approved/ > whatever How 'bout PIMP for 6.0, Pierre? *hint hint* ;) - David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http

RE: [PHP-DEV] Re: drastic memory consumption with a sequenceofexceptions

2005-08-10 Thread David Zülke
I concur. - David > -Original Message- > From: Ron Korving [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 10, 2005 2:53 PM > To: internals@lists.php.net > Subject: Re: [PHP-DEV] Re: drastic memory consumption with a > sequenceofexceptions > > My situatio

RE: [PHP-DEV] PHP 6.0 Wishlist

2005-08-12 Thread David Zülke
, but then, maybe there's a chance). That way, we could clean up naming inconsistencies (think of all the str* functions), and maybe even some of the common annoyances when it comes to parameter order (haystack, needle vs. needle, haystack) Just a thought. - David > -Original M

RE: [PHP-DEV] PHP 6.0 Wishlist

2005-08-12 Thread David Zülke
Duh... "internal functions" is the wrong term, of course. I mean all the functions that ship with PHP. The old ones would still be available, but you could do PHP.String.pos() and stuff like that alternatively. - David > -Original Message- > From: David Zülke [mailto:

RE: [PHP-DEV] PHP 6.0 Wishlist

2005-08-13 Thread David Zülke
before, -1 still. Well... if you're so anti-namespaces, I'm sure you will change all my code to use different names when collisions occur, right? Thanks man, saves me loads of trouble then. - David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DEV] Re: php-src /ext/com_dotnet com_handlers.c com_variant.c

2005-08-13 Thread David Zülke
http://www.unicode.org/faq/basic_q.html#23 > -Original Message- > From: Wez Furlong [mailto:[EMAIL PROTECTED] > Sent: Saturday, August 13, 2005 10:30 PM > To: [EMAIL PROTECTED] > Cc: internals@lists.php.net > Subject: Re: [PHP-DEV] Re: php-src /ext/com_dotnet com_handlers.c > com_variant.

RE: [PHP-DEV] PHP 6.0 Wishlist

2005-08-14 Thread David Zülke
ies. If PHP always has to take care of the weakest link in the chain (the potentially drop dead stupid "pro" developer), we'll never get the chance to clean up legacy annoyances, introduce new stuff and break with things that a majority of people see as a pain in the elsewhere. - David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   3   4   5   6   7   8   9   10   >