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

2011-04-01 Thread Richard Quadling
, Philip Am I right in thinking pman and man is not for windows ... hmmm. Sounds like half a job to me! -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY P.S. It's TFI Friday and April 1st. Oh the joy! -- PHP Internals - PHP Runtime Development Mailing List

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

2011-04-01 Thread Richard Quadling
back to live, and will be 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

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

2011-03-31 Thread Richard Quadling
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.html : bit.ly/9O8vFY

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 ras...@lerdorf.com 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 CLI/CGI perspective, the following code returns

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

2011-03-31 Thread Richard Quadling
() 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.html : bit.ly/9O8vFY -- PHP Internals

Re: [PHP-DEV] php.net hacked

2011-03-18 Thread Richard Quadling
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
was wrong? RegexBuddy (a windows app) explains regexes VERY VERY well. -- 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 rquadl...@gmail.com wrote: On 14 March 2011 20:36, Hannes Landeholm landeh...@gmail.com 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

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

2011-03-15 Thread Richard Quadling
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-14 Thread Richard Quadling
\\'\\' 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
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] 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

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

2011-02-02 Thread Richard Quadling
On 2 February 2011 11:53, Richard Quadling rquadl...@gmail.com 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_248814.html : bit.ly

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

2011-02-01 Thread Richard Quadling
). 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

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 p...@hristov.com 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 0) {  // Code never reached as n is unsigned and cannot be negative

[PHP-DEV] Re: php_xsl build failure.

2011-01-05 Thread Richard Quadling
On 4 January 2011 15:55, Richard Quadling rquadl...@gmail.com 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 revision [2] and an incompatible

[PHP-DEV] php_xsl build failure.

2011-01-04 Thread Richard Quadling
/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

[PHP-DEV] Working with arrays.

2010-12-31 Thread Richard Quadling
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-e.com/M_248814.html : bit.ly/9O8vFY -- PHP

Re: [PHP-DEV] Working with arrays.

2010-12-31 Thread Richard Quadling
On 31 December 2010 14:08, Kalle Sommer Nielsen ka...@php.net wrote: Hi Richard 2010/12/31 Richard Quadling rquadl...@gmail.com: Hi. What macros exist regarding processing arrays in PHP (core not userland)? Zend hash, see Zend/zend_hash.c for its API. I want to pass ... array('value1

Re: [PHP-DEV] Working with arrays.

2010-12-31 Thread Richard Quadling
On 31 December 2010 14:15, mark skilbeck markskilb...@php.net 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

[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/9O8vFY

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
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.html : bit.ly/9O8vFY -- PHP Internals - PHP Runtime Development

Re: [PHP-DEV] Traits and Properties

2010-12-13 Thread Richard Quadling
/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] Traits and Properties

2010-12-13 Thread Richard Quadling
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 Internals - PHP Runtime Development Mailing List To unsubscribe, visit

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

2010-12-09 Thread Richard Quadling
://www.nytimes.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

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

2010-12-07 Thread Richard Quadling
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 : bit.ly/9O8vFY -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http

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 jmer...@php.net wrote: On Tue, Dec 7, 2010 at 6:40 AM, Richard Quadling rquadl...@gmail.com wrote: On 7 December 2010 07:08, Gustavo Lopes glo...@nebm.ist.utl.pt wrote: The very simple attached patch adds an option to disable POST data processing, which

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 jmer...@php.net wrote: On Tue, Dec 7, 2010 at 7:37 AM, Richard Quadling rquadl...@gmail.com wrote: On 7 December 2010 12:11, John Mertic jmer...@php.net wrote: On Tue, Dec 7, 2010 at 6:40 AM, Richard Quadling rquadl...@gmail.com wrote: On 7 December 2010

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

2010-12-06 Thread Richard Quadling
#), 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-02 Thread Richard Quadling
On 2 December 2010 13:51, presid...@basnetworks.net wrote: 2010/12/1 Richard Quadling rquadl...@gmail.com On 1 December 2010 09:22, Stas Malyshev smalys...@sugarcrm.com wrote: ... Why change the expected behavior of isset? If a property has not been set then isset must return false

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

2010-12-01 Thread Richard Quadling
($instance-property) would call $instance-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

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 eloyb...@gmail.com wrote: 2010/12/1 Richard Quadling rquadl...@gmail.com On 1 December 2010 09:22, Stas Malyshev smalys...@sugarcrm.com wrote: Hi! Its not a matter of consistency - Properties, as a cross-language concept are not meant to work

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

2010-12-01 Thread Richard Quadling
). -- 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
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 : e-e.com/M_248814.html

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 keis...@gmail.com: 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 read getSeconds then yes for both. If not, then I'd guess

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

2010-11-30 Thread Richard Quadling
to generic to be magically created. __SETVALUE__ (or __SOMETHINGELSE__) is clear in this regard. 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

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

2010-11-29 Thread Richard Quadling
, Richard. [1] http://www.delphibasics.co.uk/RTL.asp?Name=Property -- 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: Revise callback Psuedo-type to support new Closure class ?

2010-11-25 Thread Richard Quadling
= function() // comment ; is valid. Having the error on the same line as the closing brace would be nice though. 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

Re: [PHP-DEV] git anyone?

2010-11-25 Thread Richard Quadling
On 25 November 2010 07:16, Patrick ALLAERT patrickalla...@php.net 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

Re: [PHP-DEV] Magic quotes in trunk

2010-11-18 Thread Richard Quadling
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
change, just like a const. Please bear in mind that I've not used annotations beyond docblocks and wsdl generation. So, maybe something like this ... ?php annotate __FILE__ { const Author = Richard Quadling; const Category = Richard's Framework; const Copyright = Copyright (c) 2005-2010 Richard

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

2010-11-16 Thread Richard Quadling
, but a simple syntax wrapped in a comment would really seem to be an ideal approach to me. So much so, I'm almost surprised we need anything in the core at all. Regards, Richard. [1] http://en.wikipedia.org/wiki/Annotation#Software_programming -- Richard Quadling Twitter : EE : Zend @RQuadling : e

[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=revisionrevision=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 -- PHP

Re: [PHP-DEV] Potential PC conflict.

2010-11-08 Thread Richard Quadling
On 8 November 2010 11:32, Adam Harvey ahar...@php.net wrote: On 8 November 2010 19:00, Richard Quadling rquadl...@gmail.com 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 capitalisation's

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

2010-11-08 Thread Richard Quadling
. 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 : bit.ly/9O8vFY -- PHP

[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 danbr...@php.net wrote: On Mon, Nov 8, 2010 at 06:47, Richard Quadling rquadl...@gmail.com 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 mongoid

Re: [PHP-DEV] rename T_PAAMAYIM_NEKUDOTAYIM to T_DOUBLE_COLON

2010-11-01 Thread Richard Quadling
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 ad...@codeangel.org 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

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

2010-10-26 Thread Richard Quadling
%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] BC break in 5.3.2 - 5.3.3 with parent:: and __call/__callStatic

2010-10-26 Thread Richard Quadling
the calling context/scope is going to have to be used to determine if the call should get to __call or __callStatic. Is that possible? Appropriate? Easy to do? Done by Friday? -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP Internals - PHP Runtime

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

2010-10-21 Thread Richard Quadling
On 21 October 2010 08:52, Ionut G. Stan ionut.g.s...@gmail.com 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

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

2010-10-21 Thread Richard Quadling
), then allowing me to say use whatever the default is would certainly be the way to protect me. -- 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] Skipping of defaulted parameters.

2010-10-21 Thread Richard Quadling
On 21 October 2010 11:45, Ionut G. Stan ionut.g.s...@gmail.com wrote: On 21/Oct/10 1:17 PM, Richard Quadling wrote: On 21 October 2010 08:52, Ionut G. Stanionut.g.s...@gmail.com  wrote: Option 5: Implement named parameters? Come on, play fair. I know all about the named parameters and I

[PHP-DEV] Skipping of defaulted parameters.

2010-10-20 Thread Richard Quadling
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. Regards, Richard. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY [1] http://docs.php.net

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 rquadl...@gmail.com wrote: On 19 October 2010 14:11, Derick Rethans der...@php.net 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 /I /I

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

2010-10-19 Thread Richard Quadling
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] 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 der...@php.net 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

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

2010-10-05 Thread Richard Quadling
=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
. -- 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] On how a little knowledge is completely useless.

2010-09-17 Thread Richard Quadling
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] On how a little knowledge is completely useless.

2010-09-17 Thread Richard Quadling
On 17 September 2010 14:17, Rafael Dohms lis...@rafaeldohms.com.br wrote: On Fri, Sep 17, 2010 at 6:28 AM, Christian Kaps christian.k...@mohiva.com wrote: On Fri, 17 Sep 2010 10:02:10 +0100, Richard Quadling rquadl...@gmail.com wrote: One thing that did come to mind is if we ignore all

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 patrick.alla...@gmail.com wrote: 2010/8/26 Richard Quadling rquadl...@gmail.com: 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. Sorry

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

2010-08-26 Thread Richard Quadling
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
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] How to get script filename in module RINIT function

2010-08-11 Thread Richard Quadling
. 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 List To unsubscribe, visit: http

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

2010-08-11 Thread Richard Quadling
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. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe

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

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

Re: [PHP-DEV] Indexing an array

2010-08-06 Thread Richard Quadling
On 6 August 2010 15:33, mathieu.suen mathieu.s...@easyflirt.com 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.

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

2010-07-16 Thread Richard Quadling
On 16 July 2010 02:42, Joel Perras joel.per...@gmail.com 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

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

2010-07-01 Thread Richard Quadling
'=', 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.experts-exchange.com/becomeAnExpert.jsp Zend Certified Engineer

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 petercowb...@gmail.com wrote: On 1 July 2010 11:21, Richard Quadling rquadl...@gmail.com wrote: Hi. Is there any documentation regarding this change? http://php.net/functions.arguments says Note: As of PHP 5, default values may be passed by reference

Re: [PHP-DEV] APC in trunk

2010-06-21 Thread Richard Quadling
be an option? That 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
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 stdClass? scalar, array, class, interface, untyped class. -- - Richard Quadling Standing on the shoulders of some very clever giants

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

2010-06-14 Thread Richard Quadling
, 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=ZEND002498r=213474731 ZOPA : http

Re: [PHP-DEV] Type hinting

2010-06-09 Thread Richard Quadling
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=ZEND002498r=213474731 ZOPA : http

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

2010-06-04 Thread Richard Quadling
, but does this mechanism limit you to using single dimensional arrays? -- - 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

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

2010-05-30 Thread Richard Quadling
is optional, a consumer would operate in exactly the same way. E_STRICT provides the additional information to the consumer. The onus is still on the developer to deal with what has been supplied, but core is assisting in this by casting and recording what happens. Regards, Richard. -- - Richard

Re: [PHP-DEV] Type hinting

2010-05-27 Thread Richard Quadling
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, Richard. -- - Richard Quadling Standing on the shoulders of some very

Re: [PHP-DEV] Constant and expression ?

2010-05-20 Thread Richard Quadling
For this, an enumerator could be an option. I would certainly use this a LOT for many sort of statuses within my code. class foo { const enum { CASE_1, CASE_2, CASE_3, CASE_4 }; } maybe. -- - Richard Quadling Standing on the shoulders of some very clever giants! EE : http://www.experts-exchange.com

Re: [PHP-DEV] Constant and expression ?

2010-05-19 Thread Richard Quadling
/ini.sections.php -- - 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=ZEND002498r=213474731 ZOPA : http

Re: [PHP-DEV] Interface and abstract method

2010-05-19 Thread Richard Quadling
-- Mathieu Suen Seemingly not when it applies to an interface. -- - 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

Re: [PHP-DEV] Interface and abstract method

2010-05-19 Thread Richard Quadling
. -- - 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=ZEND002498r=213474731 ZOPA : http://uk.zopa.com/member/RQuadling

Re: [PHP-DEV] Interface and abstract method

2010-05-18 Thread Richard Quadling
abstract class counter implements countable { } class counting extends counter { public function count() { return 1; } } $a = new counting(); echo $a-count(); ? -- - Richard Quadling Standing on the shoulders of some very clever giants! EE : http://www.experts-exchange.com

[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 petercowb...@gmail.com wrote: On 5 May 2010 17:25, Richard Quadling rquadl...@googlemail.com wrote: Hi. I'm in the process of getting the PHPDoc classes showing the correct inherited properties and methods (public/protected but not private). I picked

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

2010-05-05 Thread Richard Quadling
that they are sloppy with their case. E_STRICT is documented as Enable to have PHP suggest changes to your code which will ensure the best interoperability and forward compatibility of your code.. Which seems a perfect fit. -- - Richard Quadling Standing on the shoulders of some very

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

2010-05-05 Thread Richard Quadling
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.com/M_248814.html EE4Free : http

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

2010-05-04 Thread Richard Quadling
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 Certified Engineer : http://zend.com/zce.php?c=ZEND002498r=213474731 ZOPA : http

Re: [PHP-DEV] Re: Named Parameters

2010-04-12 Thread Richard Quadling
() 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/becomeAnExpert.jsp Zend Certified Engineer : http

[PHP-DEV] Re: Named Parameters

2010-04-12 Thread Richard Quadling
in 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-exchange.com/M_248814.html

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

2010-04-06 Thread Richard Quadling
, that the default value must be used and doesn't require the user to know what the value is. Regards, Richard Quadling. -- - 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

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

2010-04-06 Thread Richard Quadling
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 very clever giants! EE : http://www.experts-exchange.com/M_248814.html EE4Free : http

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 tyr...@gmail.com wrote: On Tue, Apr 6, 2010 at 1:32 PM, Hannes Magnusson hannes.magnus...@gmail.com wrote: 2010/4/6 Richard Quadling rquadl...@googlemail.com: 2010/4/5 Stanislav Malyshev s...@zend.com: Hi! Given the feedback on the list I think

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

2010-03-30 Thread Richard Quadling
we have to wait a little bit more. Personally, author #1000 is a good news story. 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

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 br...@moonspot.net 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/10 3:36 AM, Richard

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

2010-03-23 Thread Richard Quadling
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 Standing on the shoulders of some very clever giants! EE : http://www.experts-exchange.com/M_248814.html

Re: [PHP-DEV] array_seek function

2010-03-16 Thread Richard Quadling
' = 'San', 'Four' = 'She'); echo @reset(array_keys(array_values($input), 'Knee')); 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

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

2010-03-15 Thread Richard Quadling
the proper name for this), has certainly worked for me. -- - 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] RFC - class underloading -or- ancestor overloading

2010-03-13 Thread Richard Quadling
impacting (full BC exists). The amendment I made to allow a subclass to be used as an alternative is a one off hit, so maybe this technique could be used for Zend_Form (I assume this is the class you are needing to amend). Regards, Richard. -- - Richard Quadling Standing on the shoulders

Re: [PHP-DEV] Scary note for gettype() in docs

2010-03-02 Thread Richard Quadling
unicode and string. So string is consistent across the PHP versions. -- - 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

Re: [PHP-DEV] Unserialize is broken

2010-02-28 Thread Richard Quadling
to the existing properties. -- - 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=ZEND002498r=213474731 ZOPA : http

<    1   2   3   4   5   6   >