Re: [PHP-DEV] Looking for Z_TYPE_PP in all the wrong places.

2016-12-14 Thread Richard Quadling
On 14 December 2016 at 14:37, Christoph M. Becker wrote: > On 14.12.2016 at 14:32, Michael Wallner wrote: > > > On 14/12/16 14:17, Richard Quadling wrote: > >> Hi. > >> > >> I'm trying to find the replacement for Z_TYPE_PP (and several other > >&

[PHP-DEV] Looking for Z_TYPE_PP in all the wrong places.

2016-12-14 Thread Richard Quadling
//bugs.php.net/bug.php?id=73733 Just looking for some pointers. Literally! Ha ha! Regards, Richard Quadling.

[PHP-DEV] How do I detect a script failure in an extension's PHP_RSHUTDOWN_FUNCTION callback?

2015-03-05 Thread Richard Quadling
ty to detect the nature of the scripts termination (for example, but not limited to, fatal error, unhandled exception, parse error - maybe, exit(n), etc.) Is this possible? If so, some suggestions would be nice. Thanks. Richard. -- Richard Quadling Twitter : @RQuadling

Re: [PHP-DEV] [RFC] Scalar Type Hints v0.2

2015-01-14 Thread Richard Quadling
get an error if non-scalars are supplied in the addition, rather than in the call. The + is fine, it is the wrong params to the function that should be the problem. And a scalar typehint is the better place I think. Now if we have polymorphic behaviour ... (OK, 'sum' isn't a perfect exa

Re: [PHP-DEV] [RFC] Scalar Type Hints v0.2

2015-01-14 Thread Richard Quadling
re should be no errors when type juggling scalar type hints for parameters. In essence, if you are coding with scalars (ignore type hinting) and relying on PHP to do the right thing when type juggling takes place, then the same level of acceptance should be used when type juggling of scalar parameters. TL;DR; Rejecting calls to a scalar type typehinted function because the value is of the wrong type doesn't fit with PHP's type juggling. -- Richard Quadling

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-09-14 Thread Richard Quadling
ttings, but also in core options like error_reporting, > short_tags, maximum_execution_time, variables_order, register_argc_argv, > display_startup_errors, output_buffering, etc etc etc. If these differences > are not intentional, we should fix this. But I'm pretty sure they are. > > Nikita > Also remember that different SAPI's have defaults too. -- Richard Quadling Twitter : @RQuadling

[PHP-DEV] Gist to allow for [SAPI] specific sections in ini files.

2013-09-14 Thread Richard Quadling
eated the following gist which SEEMS to be working for me. https://gist.github.com/RQuadling/6562855 If anyone is interested, where should I go next? Regards, Richard. -- Richard Quadling Twitter : @RQuadling

Re: [PHP-DEV] Request for comments - new PHP feature: return typing

2013-06-27 Thread Richard Quadling
ntrinsically loosely typed and that is core to everything. But as the core can easily tell an array from a callable, then a scalar would seem to fit right in. And if we can have scalar type hinting, scalar return type hinting would/should also be possible. Is this a feasible option? -- Rich

Re: [PHP-DEV] RFC Proposal: New assign value operator

2013-06-26 Thread Richard Quadling
Tom > Hi. I'm not going to comment on the merits as such, but I'd be interested in knowing what problem this RFC would solve? Considering PHP has type juggling scalars, it would SEEM (I may have missed the point) that this could result in data loss when the enforced conversion results i

Re: [PHP-DEV] Random Monday thought.

2013-06-03 Thread Richard Quadling
; frustrate many users. > > > On Mon, Jun 3, 2013 at 2:20 PM, Richard Quadling wrote: > >> On 3 June 2013 17:55, Nikita Popov wrote: >> >> > On Mon, Jun 3, 2013 at 6:49 PM, Richard Quadling > >wrote: >> > >> >> Hi. >> >> >&

Re: [PHP-DEV] Random Monday thought.

2013-06-03 Thread Richard Quadling
On 3 June 2013 17:55, Nikita Popov wrote: > On Mon, Jun 3, 2013 at 6:49 PM, Richard Quadling wrote: > >> Hi. >> >> Recently the setters/getters rfc was declined. >> >> Other than the vote, was there any technical reasons? >> >> I've been sitt

[PHP-DEV] Random Monday thought.

2013-06-03 Thread Richard Quadling
ality? In essence, turning PHP's internals into a sort of OOP framework. Regards, Richard. -- Richard Quadling Twitter : @RQuadling EE : http://e-e.com/M_248814.html Zend : http://bit.ly/9O8vFY

Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale?

2013-05-26 Thread Richard Quadling
ve this. If it could be automated, essentially whatever manual steps a dev would take to accurately set the timezone on an unknown server, then this process would certainly seem to be useful. But only because PHP gives a warning that the lack of the timezone is an issue. Regards, Richard. -- Ri

Re: [PHP-DEV] Cannot call constructor

2013-05-24 Thread Richard Quadling
If a theoretical \PHP\baseclass can have empty __construct()/__destruct(), what about the other magic methods? OK, I suppose cascading some of the magic methods to a parent and having a null parent at the very very bottom of the heap sounds useful. But I'm not totally sure. Is there much/any need

Re: [PHP-DEV] vsprintf()

2013-04-24 Thread Richard Quadling
n array whose > elements are the > object's properties. The keys are the member variable names, with a few > notable > exceptions: " > > What was the point of your email? Did you hope for some action to arise, > or are > you just letting off steam? > > Best, &

Re: [PHP-DEV] [VOTE] Alternative typehinting syntax for accessors

2013-01-22 Thread Richard Quadling
inting the property would solve this, but you know developers will always want to get around blocks, is there any sensible use case for having type hinted set() parameter as well as type hinted property? Richard. -- Richard Quadling Twitter : @RQuadling EE : http://e-e.com/M_248814.html Zend : h

Re: [PHP-DEV] References in rfc:propertygetsetsyntax

2013-01-22 Thread Richard Quadling
On 22 January 2013 01:08, Clint Priest wrote: > On 1/21/2013 12:36 PM, Richard Quadling wrote: > > Hello. > > This may have already been covered, so apologies ... > > With https://wiki.php.net/rfc/propertygetsetsyntax-v1.2#references, > the return by reference is ha

[PHP-DEV] References in rfc:propertygetsetsyntax

2013-01-21 Thread Richard Quadling
r clarification. Regards, Richard. -- Richard Quadling Twitter : @RQuadling EE : http://e-e.com/M_248814.html Zend : http://bit.ly/9O8vFY -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] run-tests.php and dynamic extension dependencies

2011-11-28 Thread Richard Quadling
; > trunk some time soon. >> >> wouldn't  --INI-- + extension do the same? > > No, as the run-tests.php framework changes "extension_dir" to > "./modules/". It would also cause issues if you try to load an extension > that is built-in. And it's n

Re: [PHP-DEV] 5.4 regression: non-existent sub-sub keys now have values

2011-11-24 Thread Richard Quadling
uot;f" BEHAVIOR CHANGED: sub-sub-key 0 is not empty: string(1) "o" So there was a previous bug fix in V5.0.2 (maybe 5.0.3). So, the whole type juggling point here is mute. It has been that way for a very long time. I just didn't realise it. And if that is a valid result (var_

Re: [PHP-DEV] Changes to constructor signature checks

2011-11-24 Thread Richard Quadling
a special method. WikiPedia [2] has an article on Constructor Overloading. It says "Constructors, used to create instances of an object, may also be overloaded in some object oriented programming languages.". OK, so WikiPedia may have a different opinion tomorrow. Whilst we don

Re: [PHP-DEV] 5.4 regression: non-existent sub-sub keys now have values

2011-11-23 Thread Richard Quadling
viour with regard to unavailable associative indices has no tests. But using loose typing as a fallback for non existent keys seems really really wrong. Especially if the key is a constant. On what planet should ... isset($arr['exists']['test_existance']) should become isset($arr['exists'][0]) That just seems really wrong and the work around is awful. -- Richard Quadling Twitter : EE : Zend : PHPDoc : Fantasy Shopper @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea : fan.sh/6/370 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Results of testing ZF against PHP 5.4.0RC1

2011-11-18 Thread Richard Quadling
On 18 November 2011 17:37, Ferenc Kovacs wrote: > > > On Fri, Nov 18, 2011 at 5:40 PM, Richard Quadling > wrote: >> >> On 18 November 2011 13:31, Felipe Pena wrote: >> > 2011/11/18 Pierre Joye : >> >> same here, and for any other places in the ob_*

Re: [PHP-DEV] Results of testing ZF against PHP 5.4.0RC1

2011-11-18 Thread Richard Quadling
drinking until you fall over night! Have a good weekend everyone. I know I will. -- Richard Quadling Twitter : EE : Zend : PHPDoc : Fantasy Shopper @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea : fan.sh/6/370 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] some notes about traits

2011-11-16 Thread Richard Quadling
itional processing. Interestingly, I've used property_exists to expose public access to protected properties. I suppose that is always possible. Bad design really. I would guess you wouldn't mix the different access mechanisms (public/protected/private, __get/__set, getter()/setter()). Richard. -- Richard Quadling Twitter : EE : Zend : PHPDoc : Fantasy Shopper @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea : fan.sh/6/370 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] __constructor parameter limitations.

2011-09-19 Thread Richard Quadling
any sub-class' definition. As things stand, 5.4.0-beta doesn't report any problem with this code. Have I made a mountain out of a mole hill? (http://en.wikipedia.org/wiki/Make_a_mountain_out_of_a_molehill for those who don't know the English idiom). -- Richard Quadling

Re: [PHP-DEV] __constructor parameter limitations.

2011-09-17 Thread Richard Quadling
; >> Which change are you talking about? I just tried doing: >>    >    class A           { public function __construct($a)     { } } >>    class B extends A { public function __construct($a, $b) { } } >> And it worked on 5.4 Beta 1 without errors. >> >> Nikita &g

[PHP-DEV] __constructor parameter limitations.

2011-09-17 Thread Richard Quadling
hings on a different front (I can't docblock non defined parameters for examples). Richard. -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea -- PHP Internals - PHP Runtime Development Mailing List To unsubscri

Re: [PHP-DEV] A couple of missing directories if configure.js is forgotten.

2011-09-16 Thread Richard Quadling
2011/9/15 Ángel González : > Richard Quadling wrote: >> >> Hi. >> >> Sometimes I remove Release prior to nmake to make sure everything builds >> clean. >> >> 2 directories fail to get build >> >> Release\win32 >> Release\deve

Re: [PHP-DEV] A couple of missing directories if configure.js is forgotten.

2011-09-16 Thread Richard Quadling
Sure thing. https://bugs.php.net/bug.php?id=55709 and https://bugs.php.net/bug.php?id=55710 2011/9/15 Pierre Joye : > hi Richard, > > Can you open a bug for each of your patches please? Thanks! > > 2011/9/15 Ángel González : >> Richard Quadling wrote: >>> >

[PHP-DEV] A couple of missing directories if configure.js is forgotten.

2011-09-15 Thread Richard Quadling
%D in ($(BUILD_DIRS_SUB) devel win32) do @if not exist %D @mkdir %D > NUL @if not exist $(BUILD_DIR_DEV) @mkdir $(BUILD_DIR_DEV) > NUL @cd "$(PHP_SRC_DIR)" Richard. -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit

Re: [PHP-DEV] Re: [PHP-CVS] svn: /php/php-src/ branches/PHP_5_4/ext/session/tests/rfc1867_invalid_settings.phpt branches/PHP_5_4/ext/session/tests/rfc1867_invalid_settings_2.phpt trunk/ext/session/tes

2011-09-14 Thread Richard Quadling
oper creates the same ini file for a specific value when testing, then maybe the default value is incorrect. As I see it, testing for different values in INI files can only be done by having multiple tests or by a single test generating multiple sub-tests to check for the known values. Richard

Re: [PHP-DEV] Re: drop bison 1.x?

2011-09-02 Thread Richard Quadling
indows uses Bison 1.27. http://windows.php.net/downloads/php-sdk/php-sdk-binary-tools-20110512.zip contains [2011-09-02 11:36:29] [D:\php-sdk-binary-tools-20110512\bin] [] >bison.exe --version GNU Bison version 1.27 -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.

Re: [PHP-DEV] [VOTE] Choosing a distributed version control system for PHP

2011-08-27 Thread Richard Quadling
don't currently "get" git. It SEEMS very complicated for no gain - when all I'm working on is 1 extension (pecl/win32service) and phpdoc. -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea -- PHP Internals - PHP

Re: [PHP-DEV] ReflectionClass::newInstanceWithoutConstructor()

2011-08-25 Thread Richard Quadling
the documentation as well, of >  course. Wouldn't ReflectionClass::newMockInstance() be a better name? What other use cases exists? -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea -- PHP Internals - PHP Runtime Deve

Re: [PHP-DEV] [RFC] Choosing a distributed version control system for PHP (or not). Call for Participation.

2011-08-12 Thread Richard Quadling
On 12 August 2011 20:02, Stas Malyshev wrote: > Branches are different things than github forks, for different purposes. > Branch is a project, fork is a workspace. You can have multiple people work > on a project, using multiple workspaces. And today I learned something. -- Richard

Re: [PHP-DEV] getopt bc break 5.2 -> 5.3

2011-08-08 Thread Richard Quadling
=> >  string(6) "foobar" > } > > PHP 5.3.6 (cli) (built: Aug  8 2011 11:02:31): > > $ php test.php Module.Controller.Action -p foobar > array(0) { > } > > test.php: > var_dump(getopt("p:")); > > Is this by-design? > > Thanks, >

Re: [PHP-DEV] [RFC] Choosing a distributed version control system for PHP (or not). Call for Participation.

2011-08-07 Thread Richard Quadling
gle repository for the code makes the code the official, authoritative version. A DVCS will have too many champions and I feel would drastically dilute that authority. Regards, Richard. -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] asString() method vs __toString() magic method.

2011-08-06 Thread Richard Quadling
questions. Explaining it a way that isn't too technical, but covers the basis would be good. -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] asString() method vs __toString() magic method.

2011-08-02 Thread Richard Quadling
failure1::__sleep In : failure1::__wakeup Thrown exception in : failure1::__wakeup But __toString() throws a Fatal Error. -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] asString() method vs __toString() magic method.

2011-08-02 Thread Richard Quadling
error: Method AlwaysFails::__toString() must not throw an exception in Z:\fa1.php on line 21 -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http

Re: [PHP-DEV] Exception throwed if parent::__construct() not called in \DirectoryIterator subclass

2011-07-28 Thread Richard Quadling
t and instead, have another method which you must use. Badly, beforeConstruct() and/or afterConstruct(), but then we are moving to AOP (which would be nice). Enforcement of the constructor can only be achieved by making it final. -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e

Re: [PHP-DEV] new gcov.php.net machine is up

2011-07-26 Thread Richard Quadling
rms, on many different compilers and versions of >> compilers. As there is also ZEND_NS_FE (I'm not seeing a PHP_NS_FE, due to no namespaces in PHP ? I think), should there also be ZEND_NS_FE_END (and for the purist in me PHP_NS_FE and PHP_NS_FE_END). The only extension I've

Re: [PHP-DEV] set the PHP_INI_ENTRY_* values the same as for php.ini-production

2011-07-25 Thread Richard Quadling
HP Settings" or something like that and know that they won't be different to a documented "standard". Add this labelling to the phpinfo() page and it makes things very very clear what is in play. Richard. -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_

Re: [PHP-DEV] new gcov.php.net machine is up

2011-07-23 Thread Richard Quadling
. I get a LOT of warnings about casting of doubles/floats to ints/longs, along with the potential for potential data loss. How feasible is it to aim for a 100% warning free build? I'm not meaning that we should suppress the warnings. -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadli

Re: [PHP-DEV] 5.4a2 trait attribute name conflict resolution

2011-07-22 Thread Richard Quadling
ens to attributes in that same > condition. Is this a bug? > > Thanks, > > -- > Alex Howansky > > In my limited understanding, a trait is sort of composited at compile time (ish). As properties are dynamic (ish), they will overwrite. Just like an inherited class will overwrite pu

Re: [PHP-DEV] Magic quotes removal previous patch

2011-07-22 Thread Richard Quadling
On 22 July 2011 12:30, Pierre Joye wrote: > patch applied to trunk and 5.4, had to resist not to apply it to 5.3 :D As the great collective once said, Resistance is futile. Surrender to your inner-borg. -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.h

Re: [PHP-DEV] Magic quotes removal previous patch

2011-07-21 Thread Richard Quadling
champagne on ice ... so long mq! -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Coding for the differences in 5.3 and 5.4 _zend_class_entry structure.

2011-07-20 Thread Richard Quadling
erent zend engine versions, should these "level playing field" macros be moved (and completed) form the extension to core? OOI. Applying those changes allows inclued.c to compile, but now leaves me with errors in inclued_zend.c. These seem to be similar in issue but relate to the znode structures. -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] PHP 5.3.7, upgrade Libpng to 1.2.45

2011-07-19 Thread Richard Quadling
That seems to be linking just fine. Thank you. On 19 July 2011 16:23, Pierre Joye wrote: > please try again (fetch the lib again) > > On Tue, Jul 19, 2011 at 3:42 PM, Richard Quadling wrote: >> Toggling between libpng-1.2.45-vc9-x86.zip and >> libpng-1.2.46-vc9-x86.zip an

Re: [PHP-DEV] PHP 5.3.7, upgrade Libpng to 1.2.45

2011-07-19 Thread Richard Quadling
Toggling between libpng-1.2.45-vc9-x86.zip and libpng-1.2.46-vc9-x86.zip and 1.2.45 works for me but 1.2.46 doesn't. On 19 July 2011 13:15, Richard Quadling wrote: > Yep. Got it! > > I've just tried rebuilding my PHP (5.3 and 5.4). Both getting the same > linker error

Re: [PHP-DEV] PHP 5.3.7, upgrade Libpng to 1.2.45

2011-07-19 Thread Richard Quadling
tiply defined symbols found NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\Bin\cl.exe"' : return code '0x2' Stop. I'm building gd as a shared module. On 19 July 2011 12:07, Pierre Joye wrote: > global pkg is not but the standalone one

Re: [PHP-DEV] PHP 5.3.7, upgrade Libpng to 1.2.45

2011-07-19 Thread Richard Quadling
On 19 July 2011 11:25, Pierre Joye wrote: > done. And thank you for the update to http://windows.php.net/downloads/php-sdk/deps -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea -- PHP Internals - PHP Runtime Developm

Re: [PHP-DEV] [RFC] Magic Quotes in PHP, the Finalle

2011-07-19 Thread Richard Quadling
want the least number of support issues - so bugger security, let's keep all those bad practices and ini settings. I think a minimal php.ini-best-practice would certainly highlight this to the hosters. -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html :

Re: [PHP-DEV] [RFC] Magic Quotes in PHP, the Finalle

2011-07-18 Thread Richard Quadling
default to off > 5.4.4 throw an E_WARNING or E_FATAL if turned on Considering the documentation says it was deprecated in 5.3.0, just kill it off. -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea -- PHP Internals - PHP Runtim

Re: [PHP-DEV] [VOTE] 5.4 features vote

2011-07-18 Thread Richard Quadling
On 18 July 2011 01:31, Stas Malyshev wrote: > Hi! > > On 7/17/11 3:03 PM, Richard Quadling wrote: >> >> Why bother having defaults if you don't use them. > > Err, well, the way PHP ini system works you always have defaults - something > is always stored in th

Re: [PHP-DEV] [VOTE] 5.4 features vote

2011-07-17 Thread Richard Quadling
s that have only a few > lines in them, relying on the defaults for most of the behavior. > > --Dan Why bother having defaults if you don't use them. My local ini file is 6 lines long. Works perfectly. If I should be setting an option a certain way every time, then the default

Re: [PHP-DEV] weak references

2011-07-16 Thread Richard Quadling
l = -1]) $ttl = -1 would allow the object to be gc'd in the normal way, but any other value would be a hint to how long the object would be expected to last for. If gc happens frequently, then $ttl acts as a limiter and I think this could be very useful. -- Richard Quadling Twitter : EE : Z

[PHP-DEV] PHP Outreach Project (Was: Re: [PHP-DEV] Make primitive type names reserved words (Was: Re: [PHP-DEV] [RFC] 5.4 features for vote (long)))

2011-07-11 Thread Richard Quadling
arty developer) get the call from PHP saying "We will be breaking classes called string!" I really really need to do something about it. It may be a pull list is fine/enough, but I guess we already have these and yet modern projects are still not preparing themselves. -- Richard Quad

Re: [PHP-DEV] [PATCH] getimagesize - return named keys for width, height, type and attributes

2011-07-08 Thread Richard Quadling
On 8 July 2011 17:21, DIXON P. wrote: > Thanks Richard, > > Renamed and attached. > > -Original Message- > From: Richard Quadling [mailto:rquadl...@gmail.com] > Sent: 08 July 2011 17:13 > To: DIXON P. > Cc: internals@lists.php.net > Subject: Re: [PHP-DEV]

Re: [PHP-DEV] [PATCH] getimagesize - return named keys for width, height, type and attributes

2011-07-08 Thread Richard Quadling
On 8 July 2011 17:10, DIXON P. wrote: > Hi, > > I've attached a patch ... Rename as .txt to get through the mailing list s/w. -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea -- PHP Internals - PHP Runti

Re: [PHP-DEV] preg_match

2011-07-08 Thread Richard Quadling
> because it was deprecated in 5.3 - *that* is a nightmare. > > Best Regards > > Mike Robinson > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > Could've used preg_replace_all() ? M

Re: [PHP-DEV] [RFC] -W option for CLI "strict mode"

2011-07-07 Thread Richard Quadling
2011/7/7 Richard Quadling : > 2011/7/6 Johannes Schlüter : >> On Wed, 2011-07-06 at 16:46 +0100, Richard Quadling wrote: >>> 2011/7/6 Johannes Schlüter : >>> > On Tue, 2011-07-05 at 16:50 +0100, Richard Quadling wrote: >>> >> C:\php5\php.exe --v

Re: [PHP-DEV] [RFC] -W option for CLI "strict mode"

2011-07-07 Thread Richard Quadling
2011/7/6 Johannes Schlüter : > On Wed, 2011-07-06 at 16:46 +0100, Richard Quadling wrote: >> 2011/7/6 Johannes Schlüter : >> > On Tue, 2011-07-05 at 16:50 +0100, Richard Quadling wrote: >> >> C:\php5\php.exe --verbose -f d:\docs\phd\render.php -- --verbose >>

Re: [PHP-DEV] [RFC] -W option for CLI "strict mode"

2011-07-06 Thread Richard Quadling
2011/7/6 Johannes Schlüter : > On Tue, 2011-07-05 at 16:50 +0100, Richard Quadling wrote: >> C:\php5\php.exe --verbose -f d:\docs\phd\render.php -- --verbose > > That happens with all options. >   $ php -n run-tests.php -n > You missed out the -- That separates arguments

Re: [PHP-DEV] [RFC] -W option for CLI "strict mode"

2011-07-06 Thread Richard Quadling
On 6 July 2011 15:14, Mike Robinson wrote: > On July-06-11 12:58 AM Adam Harvey wrote: > > >> On 6 July 2011 06:00, Richard Quadling wrote: >> > I'd also add in the display_startup_errors to this also. As I see it, >> > the idea is to make things as noisy

Re: [PHP-DEV] [RFC] -W option for CLI "strict mode"

2011-07-05 Thread Richard Quadling
On 5 July 2011 17:22, Adam Harvey wrote: > On 5 July 2011 23:50, Richard Quadling wrote: >> Non bikeshedding thought ... >> >> Being able to enable full error reporting at the command line has to >> be complimented though by fully disabling error reporting ... >&g

Re: [PHP-DEV] [RFC] -W option for CLI "strict mode"

2011-07-05 Thread Richard Quadling
ly disabling error reporting ... -Q, --quiet or -S, --silent Question, ... When does the ini file get read and processed in regards to the command line params? Richard. -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea -- PH

Re: [PHP-DEV] [PATCH] Friendly log messages for CLI server

2011-06-30 Thread Richard Quadling
, visit: http://www.php.net/unsub.php > In Windows, there is no default colouring support at the console, so it would make sense if it was off by default. I use a tool called ANSICon which provides the colouring support (http://en.wikipedia.org/wiki/ANSI_escape_code#Support and source+bins at http

Re: [PHP-DEV] unexpected modification of a variable

2011-06-29 Thread Richard Quadling
bjects, $var is always an alias to an object identifier which points to the same object... http://docs.php.net/manual/en/language.oop5.references.php -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea -- PHP Internals - PHP Run

Re: [PHP-DEV] [VOTE] voting rfc

2011-06-23 Thread Richard Quadling
per vote. Internal only (something that won't affect userland code - a new memory manager or a significant change in internal mechanisms) Affects PECL (a change in the core that will have an impact on multiple PECL extensions) Userland Change (something that will alter an existing feature

Re: [PHP-DEV] [RFC] Object oriented session handlers

2011-06-20 Thread Richard Quadling
On 20 June 2011 01:39, Arpad Ray wrote: > On Mon, Jun 6, 2011 at 5:31 PM, Richard Quadling wrote: >> Not an internals expert, but I do have a question. >> >> When would the session handler object be destroyed? >> >> If sessions are being logged to a DB (maybe

Re: [PHP-DEV] date_diff broken?

2011-06-17 Thread Richard Quadling
"2010-10-04 06:18:48" V5.3.5 : string(19) "2010-10-04 06:18:48" V5.3.6RC1 : string(19) "2010-10-04 06:18:48" V5.3.6RC2 : string(19) "2010-10-04 06:18:48" V5.3.6RC3 : string(19) "2010-10-04 06:18:48" V5.3.6 : string(19) "2010-10-04 06:1

Re: [PHP-DEV] Getting a list of registered namespaces.

2011-06-16 Thread Richard Quadling
On 16 June 2011 17:40, Stas Malyshev wrote: > Hi! > > On 6/16/11 8:37 AM, Richard Quadling wrote: >> >> Maybe, but because of a lack of convention on naming, we have namespaces. > > No, we have namespaces not because we couldn't agree on naming convention, >

Re: [PHP-DEV] Getting a list of registered namespaces.

2011-06-16 Thread Richard Quadling
On 16 June 2011 14:03, Martin Scotta wrote: > >  Martin Scotta > > > On Thu, Jun 16, 2011 at 9:40 AM, Richard Quadling > wrote: >> >> On 15 June 2011 17:23, Stas Malyshev wrote: >> > Hi! >> > >> >> With pecl/http (DEV-2 branch)

Re: [PHP-DEV] Getting a list of registered namespaces.

2011-06-16 Thread Richard Quadling
mes of functions, classes and interfaces - be they from an extension or userland code. But I can't get namespaces, or their aliases. I'm not totally sure of any other use. That's why I was asking. As (or if) more extensions start to use namespaces to protect their contents from name co

[PHP-DEV] Getting a list of registered namespaces.

2011-06-15 Thread Richard Quadling
w the php core code to pick it up from the extension, but that would need to be at a suitable version change rather than mid-cycle. But really, this is out of my depth now. Maybe a mentor/mentee would be useful here. Regards, Richard. -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQu

[PHP-DEV] http://news.php.net/php.cvs/65214 causing win32 compile problems.

2011-06-13 Thread Richard Quadling
Bin\cl.exe"' : return code '0x2' Dropping back to the previous revision allows the compilation to proceed. I was going to look at the rmtools logs, but they are offline it seems (or the URLs different or I don't have rights). Anyway. Not sure if this is win32 only,

[PHP-DEV] Re: [PHP-DOC] Re: [PHP-DEV] SVN Account Request: spankmaster79

2011-06-09 Thread Richard Quadling
structure Manager > http://www.php.net/ > My personal fawouwit would be Elmer Fudd. http://www.google.com/webhp?hl=xx-elmer -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea -- PHP Internals - PHP Runtime Developm

Re: [PHP-DEV] Sites still down?

2011-06-08 Thread Richard Quadling
see!!!!). Richard. -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Callable type

2011-06-08 Thread Richard Quadling
2011/6/8 Johannes Schlüter : > On Wed, 2011-06-08 at 11:27 +0100, Richard Quadling wrote: >> If you try to use $funcarray(), you get the following fatal error ... >> >> Fatal error: Function name must be a string > > This is fixed. See thread > > From:   Felipe Pen

Re: [PHP-DEV] Callable type

2011-06-08 Thread Richard Quadling
Func array : Wed, 08 Jun 2011 11:24:09 +0100 So, callable and callbacks are 2 different things. Callable 1 - closures. 2 - classes with an __invoke method. 3 - strings to an existing function. 4 - array('class', 'method') Callbacks Only 1, 2 and 3 from the above list. If you

Re: [PHP-DEV] Callable typehint

2011-06-07 Thread Richard Quadling
2 weeks, and then create a poll somewhere on the wiki > and create new thread with [VOTE] in subject, and wait for another > 2weeks and then if accepted by 50%+1 php.net developer, and 60% of the > community votes, then I can commit? > Thats the current rules of the game? I always thoug

Re: [PHP-DEV] [RFC] Object oriented session handlers

2011-06-06 Thread Richard Quadling
something I see very often. What about circular references and interdependent references? -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Getting integer value for ini entries that support shorthanded sizing.

2011-06-06 Thread Richard Quadling
opriate) where called earlier in the sequence of events. That way, ini_get('memory_limit') would return the memory limit in bytes, rather than the shorthand. Richard -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea -- P

Re: [PHP-DEV] RFC: Enum

2011-06-03 Thread Richard Quadling
e existing array() rules. If a mix is used, then there is already a well documented pattern of behaviour that I think should be followed. -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] INF behavior

2011-05-27 Thread Richard Quadling
so INF==INF and INF===INF, just as NULL==NULL and NULL===NULL So, when you compare them, you can't compare the value (in the traditional sense), just the states and the states are the same both, so === should return true. I think 5.4.0-dev has it right. As long as -INF != INF &&am

Re: [PHP-DEV] Porting PECL to userspace

2011-05-20 Thread Richard Quadling
contained, then this would more likely be a good candidate. You can use reflection to build the stubs easily enough But I'm not sure all the things you can do in C can be done in PHP, not without a LOT of effort. Talking to third party libraries or making c calls to the OS is out. Richard. --

Re: [PHP-DEV] [rmtools][php-5.4] Build error between r and 311062

2011-05-16 Thread Richard Quadling
On 16 May 2011 00:44, Pierre Joye wrote: > hi, > > On Mon, May 16, 2011 at 12:11 AM, Richard Quadling > wrote: >> On 15 May 2011 21:37,   wrote: >>> >>> This is an automatic mail from the rmtoool's build bots. >>> >>> New build erro

Re: [PHP-DEV] [rmtools][php-5.4] Build error between r and 311062

2011-05-15 Thread Richard Quadling
you see the wood for the trees? If the warnings can be ignored, why not suppress them? 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] annotations again

2011-05-11 Thread Richard Quadling
ould cover the requirements. Possibly. Due to phpdocumentor not being updated to handle namespaces yet, annotations are also not going to work correctly there. 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

[PHP-DEV] Please let's not bitch about lazy users not learning C to implement THEIR missing feature. (Was Re: [PHP-DEV] 5.4 again)

2011-05-09 Thread Richard Quadling
ur pet peeve. I'll take your money. As a volunteer to the PHP project (mainly making an arse of myself in as many places as possible) and a PHP user, I am deeply indebted to all the work undertaken by the core devs. I get paid because of them. Please treat the devs nicely is all I'm r

Re: [PHP-DEV] Call non-static method staticly raise E_STRICT, but why call a static method instancely won't

2011-04-25 Thread Richard Quadling
On 25 April 2011 11:29, Reindl Harald wrote: > nobody says "stop selling guns because somebody can shoot in his foot" It'd be a place to start though. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP Internals - PHP R

Re: [PHP-DEV] RFC: built-in web server in CLI.

2011-04-20 Thread Richard Quadling
y painful to do in >> userland. > > ... but this can be relatively easily be done in a debug extension and > that's where this belongs. > > johannes If the extension could allow for userland interpretation of the debug events ... then I think that's the best of all wo

Re: [PHP-DEV] RFC: built-in web server in CLI.

2011-04-20 Thread Richard Quadling
t = true]) without a debugger in userland ... Just like you can overload session handling logic by using session_set_save_handler(), would something like ... bool debugging_set_handler(callback $watch, callback $unwatch, callback $trace); be of use? -- Richard Quadling Twitter : EE : Zend @RQua

Re: [PHP-DEV] RFC: built-in web server in CLI.

2011-04-17 Thread Richard Quadling
HP orientated web server running which was capable of starting up and shutting down with the OS. Hey! Who would need IIS or Apache then! (OK. Just kidding). -- 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] Implicit isset/isempty check on short-ternary operator

2011-04-14 Thread Richard Quadling
On 14 April 2011 11:07, Reindl Harald wrote: > > Am 14.04.2011 12:02, schrieb Richard Quadling: > >> I always declare my variables. So, I don't want to use isset() as they >> will be an incorrect test. I use is_null(). Specifically testing the >> value. If I'v

Re: [PHP-DEV] Implicit isset/isempty check on short-ternary operator

2011-04-14 Thread Richard Quadling
array) for arrays array_key_exists($varname, get_defined_vars()) for locally scoped variables. No need to use @. isset() and empty() will not differentiate between an undefined variable or index and a variable or an array element which is assigned null. The E_NOTICE only ever gets fired for the undefined variable/key ... Notice: Undefined variable Notice: Undefined index I think it depends upon the developer's requirement. Are they attempting to determine the existence of a variable/index entry or are they attempting to determine if the variable/element is null. I always declare my variables. So, I don't want to use isset() as they will be an incorrect test. I use is_null(). Specifically testing the value. If I've made a mistake and NOT declared the variable (or made a typo), I want to know. I don't want to hide it with isset()/empty(). -- 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] proposed access modifier "silent" ... was: Re: [PHP-DEV] Implicit isset/isempty check on short-ternary operator

2011-04-12 Thread Richard Quadling
On 12 April 2011 12:33, Richard Quadling wrote: > [1] http://pastebin.com/qLNYtfAw Updated to http://pastebin.com/cqSEcGpN to include 0 and '' values. The output is ... Undefined variableisset() = false empty() = true defined = false Defined variable null valu

Re: [PHP-DEV] proposed access modifier "silent" ... was: Re: [PHP-DEV] Implicit isset/isempty check on short-ternary operator

2011-04-12 Thread Richard Quadling
('undefined_key', $array)), report('Undefined key null value', isset($array['defined_key_null_value']), empty($array['defined_key_null_value']), array_key_exists('defined_key_null_value', $array)), report('Undefined key non-null val

  1   2   3   4   5   6   7   >