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
> >&
//bugs.php.net/bug.php?id=73733
Just looking for some pointers. Literally! Ha ha!
Regards,
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
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 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
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
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
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
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
; 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.
>> >>
>&
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
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
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
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
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,
&
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
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
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
; > 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
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_
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
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
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_*
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
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
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
;
>> 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
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
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
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:
>>>
>
%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
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
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.
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
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
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
=>
> 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,
>
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
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
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
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
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
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
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_
. 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
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
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
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
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
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
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
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
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
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 :
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
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
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
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
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
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]
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
> 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
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
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
>>
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
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
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
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
, 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
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
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
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
"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
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,
>
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)
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
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
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,
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
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
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
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
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
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
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
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
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
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.
--
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
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
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
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
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
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
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
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
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
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
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
('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 - 100 of 612 matches
Mail list logo