[PHP-DEV] Re: PHP_SESSION_* constant values

2012-01-28 Thread Justin Martin
Someone actually just pointed out to me that if(-1) returns true. In that case, I suppose my suggestion doesn't quite work. The reason I suggest this is that I suspect people will constantly be looking up what the constants are called. On 12-01-28 11:17 AM, Justin Martin wrote:

[PHP-DEV] PHP_SESSION_* constant values

2012-01-28 Thread Justin Martin
E = 0 - PHP_SESSION_ACTIVE = 1 This way, one can do if(session_status()) to check if there is an active session, rather than having to compare the result to a constant. Any objections? Thanks, Justin Martin -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit:

[PHP-DEV] Change bug tracker "bogus" to "not-bug"?

2012-01-24 Thread Justin Martin
ugh. I'd like to propose simply changing the term "bogus" to "not-bug". This would more politely and clearly indicate the nature of the way the bug is being closed, in addition to the comment that one ordinarily leaves. Those I've spoken to in php.doc agree. Any

[PHP-DEV] chroot function availability disqualifiers

2010-11-06 Thread Justin Martin
ith a better understanding of the compile process illuminate me as to all of the reasons why chroot might not be available? Thanks, Justin Martin, a.k.a. FrozenFire -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: Update to Zend Highlighter

2009-06-26 Thread Justin Martin
Just a friendly prodding. Was this ever added? Thanks, Justin Martin -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: Closures and __FUNCTION__

2009-04-13 Thread Justin Martin
I suppose it's an issue of cloning. Perhaps there's some difference between a cloned closure and a referenced closure? Thanks, Justin Martin Peter Danenberg wrote: >> First, we define $foo and load it with NULL so that it is available for >> referencing. > >

Re: [PHP-DEV] Re: Closures and __FUNCTION__

2009-04-13 Thread Justin Martin
ence to $foo in the closure declaration now points to the closure itself. Recursion is always complicated :P Thanks, Justin Martin Peter Danenberg wrote: > Quoth Justin Martin on Pungenday, the 30th of Discord: >> Apparently it works as such: >> >> $foo = NULL;

[PHP-DEV] Re: Closures and __FUNCTION__

2009-04-13 Thread Justin Martin
In addendum I'd like to correct the syntax that I had someone in IRC test. Apparently it works as such: $foo = NULL; $foo = function($foo) use (&$foo) { ... } Still rather hackish, but better than globals I suppose? Thanks, Justin Martin Justin Martin wrote: > Hi Pete

[PHP-DEV] Re: Closures and __FUNCTION__

2009-04-13 Thread Justin Martin
Hi Peter, If I recall correctly, you can use the 'use' keyword. $factorial = function($foo) use ($factorial) { $factorial($foo); } $factorial('Hello World!'); I'm still having issues compiling 5.3 on my system, so I haven't tested this. Thanks, Justin

Re: [PHP-DEV] Update to Zend Highlighter

2009-04-02 Thread Justin Martin
I do like using the same INI setting name which depends on the use_external_styles setting. However, no stylesheet should be automatically included. The highlight functions do not produce a whole page, except in the case of a .phps (PHP Source file). It should be up to the user to manage how they

Re: [PHP-DEV] Update to Zend Highlighter

2009-04-02 Thread Justin Martin
y a fairly large job, and certainly not one that would be "just committed," but I believe it would be of benefit to developers. Thanks, Justin Kalle Sommer Nielsen wrote: > Hi Justin > > 2009/4/2 Justin Martin : >> Hello everyone, >> >> I'd like to

[PHP-DEV] Update to Zend Highlighter

2009-04-01 Thread Justin Martin
sion structure. If I've submitted my proposal poorly, I apologize. Please offer any comments you have. Thank you, Justin Martin aka FrozenFire Index: Zend/zend_highlight.c === RCS file: /repository/ZendEngine2/zend_highlight.c,v ret

[PHP-DEV] Re: Suggestion for get_headers

2008-03-09 Thread Justin Martin
Justin Martin wrote: Hi there, I have a suggestion regarding get_headers, however I do not have a knowledge of C with which to provide a patch. The function get_headers is, as most will know, used to retrieve headers generated by an HTTP request. The primary parameter to this, "string

[PHP-DEV] Suggestion for get_headers

2008-03-09 Thread Justin Martin
g transparent. Any comments? Thanks, Justin Martin -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] w32api extension

2008-02-11 Thread Justin Martin
Pierre Joye wrote: Hi Justin, ... It has been moved out of php-src because the extension was not maintained. It is in PECL's cvs but has no release (still not maintained): http://cvs.php.net/viewvc.cgi/pecl/w32api/ FFI is much more powerful yes. But it has been developed independently of w3

[PHP-DEV] w32api extension

2008-02-10 Thread Justin Martin
Hello there, Just wondering if there is any interest in bringing w32api up to speed. The docs say it was moved to PECL as of 5.1.0, however is this not the case. Rumor has it that it was to be replaced by ffi, however again, this is not the case (ffi is in alpha and probably dead). Anyone sh