Re: [PHP-DEV] SVN Account Request: rlms

2011-04-01 Thread Richard Quadling
committing configs and stuffz for the box to systems/ > > -Hannes Considering the hack of Hannes' credentials a while ago, can we trust that the above message is REALLY from Hannes? Hmm. Just spreading some fud in this world of calm. -- Richard Quadling Twitter : EE : Zend @RQuadlin

Re: [PHP-DEV] Adding a more logical string slicing function to PHP

2011-04-01 Thread Richard Quadling
r, the pman files have not been updated for awhile so we'll look > into this. Oh, guess we should create a 'pman pman' too. > > Regards, > Philip Am I right in thinking pman and man is not for windows ... hmmm. Sounds like half a job to me! -- Richard Quadling T

[PHP-DEV] Displaying a loggable error during PHP_MINIT_FUNCTION and suppressing the loading of the module.

2011-03-31 Thread Richard Quadling
. I've tried using zend_error() and php_error_docref() but I guess the system isn't ready yet for these errors. How do I generate an error (warning level I suppose), that will be logged in the error log file. Richard. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814

Re: [PHP-DEV] Determine the name of the PHP SAPI module.

2011-03-31 Thread Richard Quadling
On 31 March 2011 10:31, Rasmus Lerdorf wrote: > #include "SAPI.h" > > and then you will have the name in the global sapi_module struct: > > sapi_module.name > > -Rasmus > > On 03/31/2011 02:24 AM, Richard Quadling wrote: >> Hi. >> >> From a C

[PHP-DEV] Determine the name of the PHP SAPI module.

2011-03-31 Thread Richard Quadling
odule, how do you determine the filename of the module. I'm guessing the above code would return Apache or IIS (if using ISAPI), etc. Is there a global property available for this (or for the above code)? Richard. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.ht

Re: [PHP-DEV] php.net hacked

2011-03-18 Thread Richard Quadling
Dinh > Old news back in December last year. http://bjori.blogspot.com/2010_12_01_archive.html -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] preg_replace does not replace all occurrences

2011-03-15 Thread Richard Quadling
t beginning of the string or after a line break character) «^» Or match regular expression number 2 below (the entire group fails if this one fails to match) «[^\\]» Match any character that is NOT a \ character «[^\\]» Match the character “'” literally «'» And that certainly makes a LOT more sense. Decoding regexes and handling the escaping needed for the language is a real headache sometimes. Just imagine creating regex code for use by client side Javascript using PHP. 8 \ in a row for a single \ wouldn't be impossible. Sorry for the confusion. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] preg_replace does not replace all occurrences

2011-03-15 Thread Richard Quadling
On 15 March 2011 10:32, Richard Quadling wrote: > On 14 March 2011 20:36, Hannes Landeholm wrote: >> What is more likely to be wrong? Your understanding of a specific >> regex pattern (which happens to be full of escapes making it >> incredibly hard to read) or the implement

Re: [PHP-DEV] preg_replace does not replace all occurrences

2011-03-15 Thread Richard Quadling
t; >> str \'\' str >> str \'\' str >> >> 'str' >> \'str\' >> >> \'str\' >> \'str\' >> >> >> Result: >> >> str '' str >> str \'' str

Re: [PHP-DEV] preg_replace does not replace all occurrences

2011-03-14 Thread Richard Quadling
I think [^] is wrong and you want it to be ... (?!) or (?!\\{2}) With that, the output is ... str '' str str \'\' str str \'\' str str \\'\\' str 'str' \'str\' \'str\' \\'str\\' -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: Clarification on the Enum language structure

2011-02-17 Thread Richard Quadling
:B; > > if ( $value->test() ) { >    echo ' what is wrong with this ? '; > } That looks like a mix of an enum and a struct. Can you provide any realworld examples where an enum contains anything other than integers? -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: ZipArchive::addGlob and ZipArchive::addPattern tests.

2011-02-02 Thread Richard Quadling
On 2 February 2011 11:53, Richard Quadling wrote: > Hi. > > 2 tests for ZipArchive. > > ZipArchive::addGlob() > ZipArchive::addPattern() > > Documentation to follow. Grr. .phpt files ARE text ... -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248

[PHP-DEV] ZipArchive::addGlob and ZipArchive::addPattern tests.

2011-02-02 Thread Richard Quadling
Hi. 2 tests for ZipArchive. ZipArchive::addGlob() ZipArchive::addPattern() Documentation to follow. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net

Re: [PHP-DEV] size_t, casting and expression is always true (or false)

2011-02-01 Thread Richard Quadling
On 1 February 2011 15:07, Andrey Hristov wrote: >  Hi Richard, > On 02/01/2011 02:35 PM, Richard Quadling wrote: >> Hi. >> >> I was looking at the cause for a test failing. >> >> It came down to ... >> >> size_t n; >> >> if (n <

[PHP-DEV] size_t, casting and expression is always true (or false)

2011-02-01 Thread Richard Quadling
ison resulted in the suppression of an error which cased the test to fail, leading me here. I think other comparisons in the above list are also suppressing errors (I think mysqlnd will fail to report a loss of connection during mysqlnd_handle_local_infile() for example). Regards, Richard. [1] http://bugs.php.net/bug.php?id=49072 -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: php_xsl build failure.

2011-01-05 Thread Richard Quadling
On 4 January 2011 15:55, Richard Quadling wrote: > Hi. > > I'm having a link error in the php_xsl extension. > > And not just me. > > Look at the tail of the compile.txt [1] and you'll see the same error as me. > > I'm guessing the change is due to rev

[PHP-DEV] php_xsl build failure.

2011-01-04 Thread Richard Quadling
44 [3] http://pecl2.php.net/downloads/php-windows-builds/php-libs/VC9/x86/libxslt-1.1.23-vc9-x86.zip -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Working with arrays.

2010-12-31 Thread Richard Quadling
On 31 December 2010 14:15, mark skilbeck wrote: > I did it like > so: https://bitbucket.org/winapiforphp/system/src/93583820bbc1/winsystem_registry.c#cl-298 > It's a little messy. I got that. 4 times no less. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814

Re: [PHP-DEV] Working with arrays.

2010-12-31 Thread Richard Quadling
On 31 December 2010 14:08, Kalle Sommer Nielsen wrote: > Hi Richard > > 2010/12/31 Richard Quadling : >> Hi. >> >> What macros exist regarding processing arrays in PHP (core not userland)? > > Zend hash, see Zend/zend_hash.c for its API. > >> I want

[PHP-DEV] Working with arrays.

2010-12-31 Thread Richard Quadling
o iterate the array to get the lengths of all the elements, add the number of elements to this value and then 1 more for the trailing \0. Unless there are some macros to allow to do this sort of thing more easily. Regards, Richard Quadling. -- Richard Quadling Twitter : EE : Zend @RQuadling : e

[PHP-DEV] zip archive prototypes / reflection / documentation mismatch.

2010-12-22 Thread Richard Quadling
Hi. Can anyone take a look at http://bugs.php.net/bug.php?id=53166? I've supplied the php-src 5.3 and trunk patches to correct the prototype and reflection. Once done, I can correct phpdoc. Richard. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9

Re: [PHP-DEV] RFC: Selecting Namespaces and Tag styles at include time. ( was Re: PHP Dev RFC Selecting Namespaces and Tag styles at include time.)

2010-12-21 Thread Richard Quadling
want to. I don't think it would be necessary to support the old style settings if the change was done at a major version, though asp_tags and short_open_tags could be marked as deprecated in the next minor release. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.ht

Re: [PHP-DEV] Traits and Properties

2010-12-13 Thread Richard Quadling
be aliased to an error. Trait1 uses $property, Trait2 uses &$property - all ok. Trait1's $property is added as expected. Trait2 is sharing the now pre-existing property. Richard. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP Internal

Re: [PHP-DEV] Traits and Properties

2010-12-13 Thread Richard Quadling
ut it in a class, I can put it in a trait. As visibility on the traits methods can be manipulated via the aliasing mechanism, so should any visibility to a property. Richard. [1] http://wiki.php.net/rfc/horizontalreuse -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Deprecating "global" + $GLOBALS, making $_REQUEST, $_GET, $_POST read-only

2010-12-09 Thread Richard Quadling
es.com/1999/06/18/nyregion/metro-news-briefs-new-jersey-woman-sues-gun-maker-after-shooting-accident.html And I doubt anyone died (or lost part of their kidney) because of the use of $_GLOBALS / global! -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PH

Re: [PHP-DEV] [PATCH] Add option to disable POST data processing

2010-12-07 Thread Richard Quadling
On 7 December 2010 12:42, John Mertic wrote: >> On Tue, Dec 7, 2010 at 7:37 AM, Richard Quadling wrote: >>> On 7 December 2010 12:11, John Mertic wrote: >>>> On Tue, Dec 7, 2010 at 6:40 AM, Richard Quadling >>>> wrote: >>>>> On 7 Dece

Re: [PHP-DEV] [PATCH] Add option to disable POST data processing

2010-12-07 Thread Richard Quadling
On 7 December 2010 12:11, John Mertic wrote: > On Tue, Dec 7, 2010 at 6:40 AM, Richard Quadling wrote: >> On 7 December 2010 07:08, Gustavo Lopes wrote: >>> The very simple attached patch adds an option to disable POST data >>> processing, which implies the data c

Re: [PHP-DEV] [PATCH] Add option to disable POST data processing

2010-12-07 Thread Richard Quadling
hp > As I understand things, the super globals are already populated by the time the script starts execution. So, ini_set() will have no impact. Can you set an ini option for a single script via some other method? -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html

Re: [PHP-DEV] RFC: C-sharp style property get/set syntax for PHP

2010-12-06 Thread Richard Quadling
xperience to argue much beyond what I've already said. The only thing I can think of though is __get can return a seemingly random value for an undefined property. In keeping with that, why couldn't a real property? In PHP's terms (not C#), what's the difference? Richard. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] RFC: C-sharp style property get/set syntax for PHP

2010-12-03 Thread Richard Quadling
On 3 December 2010 12:53, wrote: >> On 2 December 2010 13:51,   wrote: >>>> 2010/12/1 Richard Quadling >>>> >>>>> On 1 December 2010 09:22, Stas Malyshev >>>>> wrote: >>> ... >>> >>>> Why change the e

Re: [PHP-DEV] RFC: C-sharp style property get/set syntax for PHP

2010-12-02 Thread Richard Quadling
On 2 December 2010 13:51, wrote: >> 2010/12/1 Richard Quadling >> >>> On 1 December 2010 09:22, Stas Malyshev wrote: > ... > >> Why change the expected behavior of isset? If a property has not been set >> then isset must return false, and that include

Re: [PHP-DEV] RFC: C-sharp style property get/set syntax for PHP

2010-12-01 Thread Richard Quadling
nk the property should handle it. __get, __set, __isset and __unset are for undefined class members. Not properties. From the user of the class, completely invisible. Having more than 1 way to skin the cat is pretty much de rigueur for PHP. -- Richard Quadling Twitter : EE : Zend @RQuadling

Re: [PHP-DEV] RFC: C-sharp style property get/set syntax for PHP

2010-12-01 Thread Richard Quadling
}, [public|protected|private] void unset() { }, }; (NOTE: Add in abstract and final as appropriate). -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] RFC: C-sharp style property get/set syntax for PHP

2010-12-01 Thread Richard Quadling
On 1 December 2010 10:23, Eloy Bote Falcon wrote: > 2010/12/1 Richard Quadling >> >> On 1 December 2010 09:22, Stas Malyshev wrote: >> > Hi! >> > >> >> Its not a matter of consistency - Properties, as a cross-language >> >> concept >

Re: [PHP-DEV] RFC: C-sharp style property get/set syntax for PHP

2010-12-01 Thread Richard Quadling
gt;property->set(Null, True); This keeps just the 2 property methods. It still allows isset/unset and allows the developer the option of handling them. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] RFC: C-sharp style property get/set syntax for PHP

2010-11-30 Thread Richard Quadling
://msdn.microsoft.com/en-us/library/x9fsa0sw%28VS.80%29.aspx > > - Dennis > > Thanks for your reply. Fundamentally, a big +1 from my little voice on having setters/getters in PHP. The issue of documentation is probably that the documentation tools would have to adapt. As things stan

Re: [PHP-DEV] RFC: C-sharp style property get/set syntax for PHP

2010-11-30 Thread Richard Quadling
2010/11/29 Ángel González : > Richard Quadling wrote: >> As for reading $seconds directly ... >> >> Well. >> >> If you think of the element that follows read as $this->, then if >> the parser can handle both ... >> >> read $seconds >>

Re: [PHP-DEV] RFC: C-sharp style property get/set syntax for PHP

2010-11-29 Thread Richard Quadling
2010/11/29 Ángel González : > Richard Quadling wrote: > setMilliseconds() should have $value as parameter instead of a magic name. > > What about allowing this syntax to attach the property to a variable? > > For instance: > > class TimePeriod > { >    protected $se

Re: [PHP-DEV] RFC: C-sharp style property get/set syntax for PHP

2010-11-29 Thread Richard Quadling
d not implement their own getArea() method. The downside is certainly that the code is more verbose than I would guess many people would like. Regards, Richard. [1] http://www.delphibasics.co.uk/RTL.asp?Name=Property -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.htm

Re: [PHP-DEV] git anyone?

2010-11-25 Thread Richard Quadling
On 25 November 2010 07:16, Patrick ALLAERT wrote: > TortoiseGit So, I now have TortoiseCVS, TortoiseSVN _and_ TortoiseGit. Gee! My windows is slow enough ... now I'm pulling along 3 tortoises. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

Re: [PHP-DEV] Re: Revise callback Psuedo-type to support new Closure class ?

2010-11-25 Thread Richard Quadling
y that the error is tagged as being on line 6 and not line 4. I can see why. It isn't an error until the first non ; following the closing brace (excluding comments). So ... $fn = function() // comment ; is valid. Having the error on the same line as the closing brace would be nice though

Re: [PHP-DEV] Magic quotes in trunk

2010-11-18 Thread Richard Quadling
emoval, but wasn't there some discussion a LONG while ago about when this should be? I would have thought that anything deprecated would best be removed at the next major release. So that makes it gone for V6 - when ever that may be. Richard -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] PHP 5.4 - Meta attribute (aka. Annotations) support discussion

2010-11-17 Thread Richard Quadling
ew elements to the annotation would involve absolutely no changes to core. You want to add meta data describing the COBOL picture format of a parameter or the regex validation rule that will be used, then fine. Nothing in the engine will change. -- Richard Quadling Twitter : EE : Zend @RQuadlin

Re: [PHP-DEV] PHP 5.4 - Meta attribute (aka. Annotations) support discussion

2010-11-16 Thread Richard Quadling
tever form is required. So, aren't annotations really just an extension to the docblock decoding aspects of reflection? Do we have a "performance hit" because of reflection? I know I know very little about the impact on PHP, but a simple syntax wrapped in a comment would really s

[PHP-DEV] Re: [PHP-DOC] Re: [PHP-DEV] Potential PC conflict.

2010-11-08 Thread Richard Quadling
On 8 November 2010 17:25, Daniel Brown wrote: > On Mon, Nov 8, 2010 at 06:47, Richard Quadling wrote: >> >> And probably all sane, rational people will agree with you (and me). >> >> It's the loonies I worry about! > >    The person who submitted that is a &

[PHP-DEV] Feasibility of additional support around constants.

2010-11-08 Thread Richard Quadling
n by each group. If the additional grouping was alpha, rather than numeric, that would help further I think (removing the magic numbers). Is this anything that is ... a - Useful b - Doable Regards, Richard Quadling. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html

Re: [PHP-DEV] Potential PC conflict.

2010-11-08 Thread Richard Quadling
On 8 November 2010 11:32, Adam Harvey wrote: > On 8 November 2010 19:00, Richard Quadling wrote: >> [1] vs [2] >> >> Not asking for a change or anything. > > I think it's probably OK the way it is: the manual page is > specifically for MongoId, and the capital

[PHP-DEV] Potential PC conflict.

2010-11-08 Thread Richard Quadling
Hi. [1] vs [2] Not asking for a change or anything. Regards, Richard. [1] http://svn.php.net/viewvc?view=revision&revision=277701 [2] http://www.urbandictionary.com/define.php?term=mongoid -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY --

Re: [PHP-DEV] rename T_PAAMAYIM_NEKUDOTAYIM to T_DOUBLE_COLON

2010-11-01 Thread Richard Quadling
.com/nlx98u. Maybe just drop the tinyurl.com part - let's give those that can't really something to complain about! -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] rename T_PAAMAYIM_NEKUDOTAYIM to T_DOUBLE_COLON

2010-10-30 Thread Richard Quadling
On 30 October 2010 02:51, Chad Emrys wrote: > What is in a name anyway? Would a T_PAAMAYIM_NEKUDOTAYIM by any other name make a difference? -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP Internals - PHP Runtime Development Mailing List

Re: [PHP-DEV] BC break in 5.3.2 -> 5.3.3 with "parent::" and __call/__callStatic

2010-10-26 Thread Richard Quadling
); > echo 'object = '; > $c->o(); > echo 'parent = '; > $c->existing(); > > echo phpversion() . "\n"; > > > Thanks, > > --Dan So the calling context/scope is going to have to be used to determine if the call should get to __call

Re: [PHP-DEV] Inconsistent exit code from CLI?

2010-10-26 Thread Richard Quadling
lling PHP -v PHP -v ECHO %ERRORLEVEL% ECHO Calling PHP -j PHP -j ECHO %ERRORLEVEL% Both errorlevels are 0. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Skipping of defaulted parameters.

2010-10-21 Thread Richard Quadling
On 21 October 2010 11:45, Ionut G. Stan wrote: > On 21/Oct/10 1:17 PM, Richard Quadling wrote: >> >> On 21 October 2010 08:52, Ionut G. Stan  wrote: >>> >>> Option 5: Implement named parameters? >>> >> >> Come on, play fair. I know all a

Re: [PHP-DEV] Skipping of defaulted parameters.

2010-10-21 Thread Richard Quadling
ing the default was documented, the prototype would look more like int $flags = 0 So, I want to use the default. OK. 0 vs null in terms of code, 0 is shorter, but it means that if the default was to change (not with this function, but any function - and that could be userland), then allowing me to sa

Re: [PHP-DEV] Skipping of defaulted parameters.

2010-10-21 Thread Richard Quadling
On 21 October 2010 08:52, Ionut G. Stan wrote: > > Option 5: Implement named parameters? > Come on, play fair. I know all about the named parameters and I didn't mention them. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP I

Re: [PHP-DEV] Continuing the build process after a failed build of an extension.

2010-10-20 Thread Richard Quadling
On 19 October 2010 14:51, Richard Quadling wrote: > On 19 October 2010 14:11, Derick Rethans wrote: >> --enable-snapshot-build > > Close. Will adapt. I don't want everything on, just the ignore build > failures part. > > Thank you. Or I can just use ... nmake

[PHP-DEV] Skipping of defaulted parameters.

2010-10-20 Thread Richard Quadling
one. "Void" also. But using something like _ (yep, underscore), could be a solution here [4]. Option 2, after probably having to reject option 3, would be my choice. I want null to REALLY mean nothing. Just like it would be in foo(10). Option 1 is what I have to do at the moment.

Re: [PHP-DEV] Continuing the build process after a failed build of an extension.

2010-10-19 Thread Richard Quadling
On 19 October 2010 14:11, Derick Rethans wrote: > --enable-snapshot-build Close. Will adapt. I don't want everything on, just the ignore build failures part. Thank you. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP Internals - PHP

[PHP-DEV] Continuing the build process after a failed build of an extension.

2010-10-19 Thread Richard Quadling
I can exclude it from the configure, but that won't help me when the extension is fixed. Regards, Richard. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] mt_rand deprecated in trunk?

2010-10-05 Thread Richard Quadling
s.c?r1=303912&r2=303911&pathrev=303912&view=patch -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Expose compare_function() to userspace

2010-09-30 Thread Richard Quadling
variant_cmp() (Windows only - a function in the COM/DOTNET extension) and variable_compare($a,$b) is actually longer than ($a<$b?-1:(($a>$b)1:0) But var_cmp() would be my +1 Richard. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] On how a little knowledge is completely useless.

2010-09-17 Thread Richard Quadling
On 17 September 2010 14:17, Rafael Dohms wrote: > On Fri, Sep 17, 2010 at 6:28 AM, Christian Kaps > wrote: >> On Fri, 17 Sep 2010 10:02:10 +0100, Richard Quadling >> wrote: >>> One thing that did come to mind is if we ignore all the issues and >>> c

[PHP-DEV] On how a little knowledge is completely useless.

2010-09-17 Thread Richard Quadling
on with its own evolution? Richard. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [PATCH] #52563: Adding E_NONE and/or E_EVERYTHING constants

2010-08-27 Thread Richard Quadling
On 26 August 2010 16:38, Patrick ALLAERT wrote: > 2010/8/26 Richard Quadling : >> With all of "I thought this sort of stuff was for Friday's only" >> comments being made, I think >> E_ALL_AND_I_REALLY_REALLY_REALLY_DO_MEAN_ALL would be the most useful. >

Re: [PHP-DEV] [PATCH] #52563: Adding E_NONE and/or E_EVERYTHING constants

2010-08-26 Thread Richard Quadling
nts being made, I think E_ALL_AND_I_REALLY_REALLY_REALLY_DO_MEAN_ALL would be the most useful. -- Richard Quadling. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Static initialization block support in Class?

2010-08-17 Thread Richard Quadling
Or you could load the public static methods with a JIT call to prepare the static instance. Overhead is that every call will have to test self::$instance There is probably some argument against "statics" being "dynamic" though ... not my area of expertise to argue either way. -- Richard Quadling. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Strict typing (was: Typehints)

2010-08-11 Thread Richard Quadling
On 11 August 2010 15:13, Zeev Suraski wrote: > At 15:14 11/08/2010, Richard Quadling wrote: >> >> On 11 August 2010 12:10, Zeev Suraski wrote: >> > We need to remove strict typing from trunk before we release anything >> > 'official' from php.net >

Re: [PHP-DEV] Strict typing (was: Typehints)

2010-08-11 Thread Richard Quadling
nch, then it doesn't go into the new branch (I have a limited understanding of what that entails, so I suspect I'm missing a lot of important processes by saying that - thankfully, no one will ever consider _me_ for the role of RM!). So, the trunk keeps strict typing. Richard Quadling.

Re: [PHP-DEV] How to get script filename in module RINIT function

2010-08-11 Thread Richard Quadling
ne? > > Thanks, > b. > If the script is run via the command line (in my limited experience, this would be the CLI, CGI, FastCGI SAPIs, others also maybe), can't you look through the command line parameters? -- Richard Quadling. -- PHP Internals - PHP Runtime Development Mailing

Re: [PHP-DEV] Indexing an array

2010-08-06 Thread Richard Quadling
On 6 August 2010 15:33, mathieu.suen wrote: > Hi, > > For now you can only index an array using a scalar type or a string. > Is there some rfc or work going on to enlarge the possibility so that it is > possible to have some other object like: > > - closure > - object > - etc. > > Thanks > > -- Ma

Re: [PHP-DEV] Unintuitive array_combine() behaviour

2010-07-16 Thread Richard Quadling
On 16 July 2010 02:42, Joel Perras wrote: > array_combine(array(), array()) triggers an E_WARNING and returns > false, instead of simply returning an empty array with no triggered > warning. > > This is not a bug, but was intentionally written as such - see > ext/standard/array.c around lines 4480

Re: [PHP-DEV] PHP 4 to PHP 5 change - allowing assignment to pass by reference function parameters.

2010-07-01 Thread Richard Quadling
On 1 July 2010 11:31, Peter Cowburn wrote: > On 1 July 2010 11:21, Richard Quadling wrote: >> Hi. >> >> Is there any documentation regarding this change? > > http://php.net/functions.arguments says "Note: As of PHP 5, default > values may be pas

[PHP-DEV] PHP 4 to PHP 5 change - allowing assignment to pass by reference function parameters.

2010-07-01 Thread Richard Quadling
or, unexpected '=', expecting ')' I'm just looking for some notes to pass on. Thank you. Richard. -- - Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html EE4Free : http://www.exper

Re: [PHP-DEV] APC in trunk

2010-06-21 Thread Richard Quadling
is added to code but not enabled? -- ----- Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp Zend Certified Engineer : http://zend.com/zce.php?c

Re: [PHP-DEV] Type hinting

2010-06-18 Thread Richard Quadling
gt; To unsubscribe, visit: http://www.php.net/unsub.php > > class::method(object $instance) would certainly be useful. Could this not be solved by internally extending all userland classes (and whilst we are at this why not all internal classes) from a PHP supplied empty class? Maybe std

[PHP-DEV] Different ways to collect an extension's functions.

2010-06-14 Thread Richard Quadling
ns[] = { Regards, Richard. -- - Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp Zend Certified Engineer : http://zend.com/zce.php?c=ZEND00

Re: [PHP-DEV] Type hinting

2010-06-09 Thread Richard Quadling
php.net/php.internals/48573 of use here? -- - Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp Zend Certified Engineer : http://zend.com/zce.php?c=ZEND00

Re: [PHP-DEV] Suggestion: echo function(var)[0];

2010-06-04 Thread Richard Quadling
s[1] and it was planned on >> the old PHP6 todo at the PDT[2]. >> >> [1] http://wiki.php.net/rfc/functionarraydereferencing >> [2] http://wiki.php.net/summits/pdmnotesmay09#php_6 (see point #13) >> >> > > > --Mathieu Suen > > > &g

[PHP-DEV] Type hinting / auto-conversion suggestion.

2010-05-30 Thread Richard Quadling
what happens. Regards, Richard. -- - Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213

Re: [PHP-DEV] Type hinting

2010-05-27 Thread Richard Quadling
ified we know we've got the right type and acceptable values. In databases, you can't usefully have a column containing multiple types. Everything would end up as a char/text column to allow you to put a date AND a string AND a number AND a boolean value in the column. Regards, Richar

Re: [PHP-DEV] Constant and expression ?

2010-05-20 Thread Richard Quadling
performance. >> >> What do you think? >> >> Tyrael > > That's could be very useful to define flag, something like that : > > class foo { >        const CASE_1 = 1 << 1; >        const CASE_2 = 1 << 2; >        const CASE_3 = 1 <<

Re: [PHP-DEV] Interface and abstract method

2010-05-19 Thread Richard Quadling
On 19 May 2010 13:53, Peter Cowburn wrote: > I think the key issue is that _in the docs_ some interface methods are > marked up as abstract, yet others aren't.  I suggest making them > consistent, having them all being one or t'other. I would show abstract. -- ---

Re: [PHP-DEV] Interface and abstract method

2010-05-19 Thread Richard Quadling
gt; >>> *OuterIterator* extends Iterator >>> <http://www.php.net/manual/en/class.iterator.php>  { >>> /* Methods */ >>> public Iterator getInnerIterator >>> <http://www.php.net/manual/en/outeriterator.getchildren.php>  ( void ) >>> .

Re: [PHP-DEV] Constant and expression ?

2010-05-19 Thread Richard Quadling
h setting, and the comment on [1] regarding "However, all this goodness comes with a drawback: configuration settings are instance wide, which impacts all setups of PHP that runs beyond a single web request (e.g. Apache module or FastCGI).", could the ini entry be placed in a ... [HOST=]

Re: [PHP-DEV] Interface and abstract method

2010-05-18 Thread Richard Quadling
face. So you must supply the code in any class that implements the interface. Unless the sub-class is declared as an abstract class ... count(); ?> -- - Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html EE

[PHP-DEV] Re: [PHP-DOC] What is the use of the $replacement property in the RegexIterator class.

2010-05-11 Thread Richard Quadling
On 6 May 2010 08:55, Peter Cowburn wrote: > On 5 May 2010 17:25, Richard Quadling wrote: >> Hi. >> >> I'm in the process of getting the PHPDoc classes showing the correct >> inherited properties and methods (public/protected but not private). >> >>

[PHP-DEV] What is the use of the $replacement property in the RegexIterator class.

2010-05-05 Thread Richard Quadling
dump()-ing the RegexIterator results in a ["replacement"]=>NULL Assigning a value to $replacement seems to have no bearing on the output. Regards, Richard. -- - Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange

Re: [PHP-DEV] Re: Turkish/Azeri locale support

2010-05-05 Thread Richard Quadling
il it is removed (introduced in 5.x then drop in 7.x). Alternatively, only activate case sensitivity if E_STRICT is set. If a developer is creating E_STRICT code, I doubt that they are sloppy with their case. E_STRICT is documented as "Enable to have PHP suggest changes to your code which will e

Re: [PHP-DEV] Re: Turkish/Azeri locale support

2010-05-04 Thread Richard Quadling
occurred to me that PHP wasn't case sensitive. So no BC for at least 1 user! -- - Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp Zend Cer

[PHP-DEV] Re: Named Parameters

2010-04-12 Thread Richard Quadling
n the prototype of the function shouldn't automatically become accessible to my function without me doing something extra. In that regard, func_get_args() is perfect. Richard. -- ----- Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchan

Re: [PHP-DEV] Re: Named Parameters

2010-04-12 Thread Richard Quadling
amed_params() and reflection would be the "proper" way to determine the named params. -- - Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html EE4Free : http://www.experts-exchange.com/becomeAnExpe

Re: [PHP-DEV] On constructors: BC Break and Class compiler Improvements

2010-04-06 Thread Richard Quadling
On 6 April 2010 13:52, Ferenc Kovacs wrote: > > > On Tue, Apr 6, 2010 at 1:32 PM, Hannes Magnusson > wrote: >> >> 2010/4/6 Richard Quadling : >> > 2010/4/5 Stanislav Malyshev : >> >> Hi! >> >> >> >>> Given the feedback o

Re: [PHP-DEV] On constructors: BC Break and Class compiler Improvements

2010-04-06 Thread Richard Quadling
sing __construct vs the class name. 818 classes have __construct 1511 use the class name as the constructor 3563 files don't have a constructor I excluded tests, examples and documentation (but some may have crept in). Richard. -- - Richard Quadling "Standing on the shoulders of some

[PHP-DEV] Supplying nothing at all for default parameters

2010-04-06 Thread Richard Quadling
Hello. A suggestion I would like to make is to allow for nothing to be supplied for defaulted parameters. I suppose the easiest way of describing this issue is with the following code ... http://www.experts-exchange.com/M_248814.html EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp Z

Re: [PHP-DEV] Have we reached 1,000 authors for the PHP project?

2010-03-30 Thread Richard Quadling
On 30 March 2010 15:25, Brian Moon wrote: > Neat. I would not count cvs2svn though. Or any other known bots in there if > there are any. > > Would be neat to see the list posted on pastebin though. > > > Brian. > > http://brian.moonspot.net/ > > On 3/30/1

[PHP-DEV] Have we reached 1,000 authors for the PHP project?

2010-03-30 Thread Richard Quadling
quot;markskilbeck" 999,"gregorycu" 1000,"lduran" Maybe this could be a news item? Or are csv2svn and changelog not to be included? In which case we have to wait a little bit more. Personally, author #1000 is a "good news story". Regards. Richard. --

Re: [PHP-DEV] trunk is alive and open

2010-03-23 Thread Richard Quadling
debug > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > Are the win32 snapshots going to come back online again? Re:http://bugs.php.net/bug.php?id=50821 Regards, Richard. -- - Richard Quadling "Stand

Re: [PHP-DEV] array_seek function

2010-03-16 Thread Richard Quadling
/www.php.net/unsub.php > Maybe not as efficient as it could be but ... 'Itchy', 'Two' => 'Knee', 'Three' => 'San', 'Four' => 'She'); echo @reset(array_keys(array_values($input), 'Knee')); Richard. -

Re: [PHP-DEV] Re: [fw-webservices] Re: [PHP-DEV] RFC - "class underloading" -or- "ancestor overloading"

2010-03-15 Thread Richard Quadling
ned here, but might allow the framework to > be written in a way that doesn't have, or at least ameliorates, these sorts of > issues. > > Or perhaps there's a different approach besides traits that would work better. > I dunno. :-) > > --Larry Garfield T

Re: [PHP-DEV] RFC - "class underloading" -or- "ancestor overloading"

2010-03-13 Thread Richard Quadling
end_Framework/standard/trunk/library/Zend/Soap/AutoDiscover.php?r1=20096&r2=21379) which allows me to supply an alternative class name in a similar fashion to being able to supply a complex type handler class name. This was the easiest route I could find and the least impacting (full BC exists).

<    1   2   3   4   5   6   7   >