[PHP-DEV] Re: Property Overloading RFC

2005-08-08 Thread Justin Hannus
Please let me correct my last post, and sorry for the double posting :) Justin Hannus wrote: The way ActionScript 2.0 solves this is function __get fooProp() { return $this->_fooProp; // $_fooProp is read only } function __set barProp($

[PHP-DEV] Re: Property Overloading RFC

2005-08-08 Thread Justin Hannus
...And, this could allow static member overloading as well! -Justin Justin Hannus wrote: The way ActionScript 2.0 solves this is with set and get keywords on function declarations. Any class can contain as many setter/getters as they need,. Since we dont want to introduce any new keywords how

[PHP-DEV] Re: Property Overloading RFC

2005-08-08 Thread Justin Hannus
The way ActionScript 2.0 solves this is with set and get keywords on function declarations. Any class can contain as many setter/getters as they need,. Since we dont want to introduce any new keywords how about something similar with __set and __get? _fooProp = $val; // $_fooProp is read only

[PHP-DEV] ftruncate() and user stream wrappers

2005-06-16 Thread Justin Hannus
Is there plans to allow ftruncate calls on user defined stream wrappers? i.e. The wrapper class would implement: bool stream_truncate(int length); -justin -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Segfault in PDO_ODBC w/db2 v7.2

2005-05-31 Thread Justin Hannus
post i sent to pecl.dev, I'm not even sure if PDO_ODBC supports IBM-DB2v7.2. Can someone confirm this? Justin Hannus Software Engineer | Lycos Inc. [EMAIL PROTECTED] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: new overloading feature?

2005-05-13 Thread Justin Hannus
My thoughts are: 1. Adding to many __methods is ugly. 2. Interesting subject though. Not to add to the flame but I've seen the need for more advanced overloading features in allot of the code I've been writing with PHP5. Consider the following example (C++ almost like, may slow down the engine b

[PHP-DEV] Re: new overloading feature?

2005-05-13 Thread Justin Hannus
My thoughts are: 1. Adding to many __methods is ugly. 2. Interesting subject though. Not to add to the flame but I've seen the need for more advanced overloading features in allot of the code I've been writing with PHP5. Consider the following example (C++ almost like, may slow down the engine b

[PHP-DEV] Re: Build issues with Mac OSX 10.4

2005-05-12 Thread Justin Hannus
have you by any chance rebuilt the configure script with buildconf to add another extension to your build? not thats it's necessary but is sometimes the cause of the problem your having. if you ave incompatible versions of the GNU tools (autoconf, automake, etc.) they can generate buggy configu

Re: [PHP-DEV] Re: os x linking issue with extension

2005-04-08 Thread Justin Hannus
e to use it quite a lot for automating QuarkXPress workflow) Cheers, Michael Johnston On 5-Apr-05, at 3:35 AM, Justin Hannus wrote: Can you post a link to your config.m4? PHP_ADD_FRAMEWORK(Framework) should do the trick. Try having a look at the config.m4 for the OpenDirectory extension. I

[PHP-DEV] Re: os x linking issue with extension

2005-04-04 Thread Justin Hannus
Can you post a link to your config.m4? PHP_ADD_FRAMEWORK(Framework) should do the trick. Try having a look at the config.m4 for the OpenDirectory extension. It links to the DirectoryService framework. http://pecl.php.net/get/opendirectory-0.2.6.tgz Curious, what specific part of Carbon are you w

Re: [PHP-DEV] On Namespaces...

2004-08-17 Thread Justin Hannus
> I don't see how it could change in the future, but that's > just my 2c :) Thanks, thats all I was really looking for. The status of the terms, cause if they're not being reserved then I would like to continue using them -- at my own risk. As Marcus points out, its might not be the best idea to i

Re: [PHP-DEV] On Namespaces...

2004-08-16 Thread Justin Hannus
Thanks. I figured as much but when I implemented this the terms 'Namespace' and 'import' just sounded so sexy to me. -Justin "Marcus Boerger" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello Justin, > > Monday, August 16, 2004, 4:08:46 PM, you wrote: > > > Zeev, > > > I too ha

Re: [PHP-DEV] On Namespaces...

2004-08-16 Thread Justin Hannus
de|require[_once] dubbed 'Namespace' with static method Namespace::import(). I'm just wondering if 'namespace' and 'import' is reserved for future use before I port all my code to php5. Thanks, -Justin Hannus "Zeev Suraski" <[EMAIL PROTECTED]> wro

[PHP-DEV] Re: Question from a new module developer

2004-07-17 Thread Justin Hannus
David Carter wrote: Hi, I'm developing a standalone module that needs to hook into another Apache module. I need a pointer to a request record (request_rec) to make the apache call, but I can't seem to find how to access one from a module. (or alternatively, a way to get a current request from with

[PHP-DEV] Re: buildconfig on mac

2004-07-06 Thread Justin Hannus
--force in a freshly un-tarred 4.3.7 release works great. http://us4.php.net/manual/en/faq.build.php may have some info on the autoconf versions you'll need. -Justin Hannus > > Any ideas how to fix this. There were some other errors but I have fixed > those. This error seems to be

Re: [PHP-DEV] [RFC] Type hints

2004-05-12 Thread Justin Hannus
IMHO if php is going to have the option to use type hinted parameters (which I really like) then it should have the option to use type hinted variables as well. Half stepping with the type hints are just going to complicate things. Afterall, NULL is a value and not a type. And if you use a type hin

Re: [PHP-DEV] Re: Construct Request

2004-04-15 Thread Justin Hannus
Actually, although suppressing the E_NOTICE, this is not exactly the behavior you want. What if $_GET['Does']['Not']['Exist'] really doesn't exists? It is then created and assigned to $param when passed as an argument to the param function. Therefore polluting $_GET with another unused array and a

[PHP-DEV] Re: Construct Request

2004-04-15 Thread Justin Hannus
> echo setor($required_variable, die('error...'); > or > echo setor($error, ''); > or > echo setor($sMessage, $sDefaultMessage). > or > $z = setor($_GET['z'], 'Default'); > $z = setor($_GET['z'], 'Default'); Whats wrong with defining a user-level function? function setor_array(&$array, $key, $def

[PHP-DEV] [patch] xslt config.m4: no link to stdc++ for Sablot

2004-04-02 Thread Justin Hannus
_LIBRARY(stdc++,,XSLT_SHARED_LIBADD) AC_TRY_RUN([ #include #include @@ -162,6 +163,5 @@ PHP_ADD_INCLUDE($XSLT_DIR/include) PHP_ADD_LIBRARY_WITH_PATH($XSLT_LIBNAME, $XSLT_DIR/lib, XSLT_SHARED_LIBADD) - AC_DEFINE(HAVE_XSLT, 1, [ ]) fi ------

[PHP-DEV] CVS Account Request: jhannus

2004-02-04 Thread Justin Hannus
maintaining opendirectory extension -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] CVS Account Request: m31

2004-01-09 Thread Justin Hannus
not so sure if i'll really need one at this point but. for further developing, versioning and testing of newly proposed "opendirectory" extension. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] New extension proposal - OpenDirectory

2004-01-09 Thread Justin Hannus
gt; borks on postings via NNTP :-) > > > - Original Message - > From: "Justin Hannus" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, January 09, 2004 2:01 PM > Subject: [PHP-DEV] New extension proposal - OpenDirectory > > > >

[PHP-DEV] New extension proposal - OpenDirectory

2004-01-09 Thread Justin Hannus
previously posted on php.pecl.dev --- I've posted a couple messages in the past week or so proposing an extension I'm working on to the pecl.dev list but no responses, not even a -1. Is there a better way to make a proposal?? "Justin Hannus&quo

[PHP-DEV] Re: Resource array of arrays (variable at runTime)

2003-12-17 Thread Justin Hannus
etter place for the question. -Justin Hannus "VIVI arno" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > I try to build an extension for my pleasure. > I would like to make a function which return me an array of variable arrays. For exampl

Re: [PHP-DEV] With End With

2003-12-10 Thread Justin Hannus
I've used the "with (object)" construct in JavaScript before and I'm assuming it would work the same, but instead of: With $obj ->methodCall(); // ugly ... it would be much sexier like: with ($obj) { methodCall(); } But its all just sugar. As far as implementing it in userland with a recurs

[PHP-DEV] REGISTER_*_CONSTANT() or SET_VAR_*() with multiple strings constants

2003-12-08 Thread Justin Hannus
ariables. Any thoughts on this would be appreciated. Thanks, -- Justin Hannus Lead Programmer/Web Development [EMAIL PROTECTED] www.visualconceptsinc.com [860] 242.1150 ext.125 [860] 242.1446 fax -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: help with config.m4 for ext's

2003-11-05 Thread Justin Hannus
Maybe this was the wrong list to post to.. but for those of you who come across the same problem, I fixed it by removing the array subscripts and using scalar values instead. AC_DEFINE* and probably all the m4 macros strip all ['s and ]'s from your config.m4 file. -JH &quo

[PHP-DEV] help with config.m4 for ext's

2003-11-03 Thread Justin Hannus
(DS_SOURCEVERSION, "$ds_plist[$((i+1))]", [DS version.plist value SourceVersion]);; *BuildVersion*) AC_DEFINE_UNQUOTED(DS_BUILDVERSION, "$ds_plist[$((i+1))]", [DS version.plist value BuildVersion]);;

Re: [PHP-DEV] file_exists and array_merge_clobber

2003-09-30 Thread Justin Hannus
Aahh, I didn't see that in your original message :) "Lukas Smith" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > From: Justin Hannus [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, September 30, 2003 8:12 PM > > > > I agree with Wez

Re: [PHP-DEV] file_exists and array_merge_clobber

2003-09-30 Thread Justin Hannus
I agree with Wez, what if you are searching for a file with a relative file path, e.g: wrote in message news:[EMAIL PROTECTED] > Using the include path for file_exists doesn't sound useful to me, for > similar reasons as those for not allowing to write a file in the include > path - which file ar

Re: [PHP-DEV] before beta2 (is alive again) :-)

2003-09-08 Thread Justin Hannus
Hello All, IMHO. I agree with Andi, but the only way to I see fit to implement this is through polymorphism. If every object is a subclass of an Object class then passing a NULL reference would make more since and be perfectly legal. -Justin Hannus "Andi Gutmans" <[EMAIL PROTECT

Re: [PHP-DEV] [Proposal] Idea for Application level variables

2003-08-14 Thread Justin Hannus
So it seems like to get the same functionality, in userland, why not just: $_APPLICATION = &$_SESSION -Justin "Davey" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Wojtek Meler wrote: > > Davey wrote: > > > >> MMCache can be used as a session handler, but this still has the > >>

Re: [PHP-DEV] shutdown_memory_manager and resource handling

2003-08-14 Thread Justin Hannus
"Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Can't you get a line number and the actual address being accessed to cause > that crash? Here is a more detailed backtrace. In my original post I was using php-4.3.0 but the recompiled version with --enable-debug I'm u

Re: [PHP-DEV] shutdown_memory_manager and resource handling

2003-08-14 Thread Justin Hannus
> so - just try to build your extension static into php, debug > it and build it shared once you have no leaks left > Thanks, I'll try that. -Justin Hannus -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] shutdown_memory_manager and resource handling

2003-08-14 Thread Justin Hannus
ot get a chance to until later tonight. -Justin Hannus -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] shutdown_memory_manager and resource handling

2003-08-14 Thread Justin Hannus
000 r24: 0x r25: 0x r26: 0xb968 r27: 0x0010 r28: 0x0003 r29: 0xb97c r30: 0xbfffdf50 r31: 0x0018ade8 -- Justin Hannus -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] shutdown_memory_manager and resource handling

2003-08-14 Thread Justin Hannus
> do you use any shared php extensions by any chance? Yes, I'm developing an extension to wrap Apple's OpenDirectory API (reffer to my first post). Thats the only shared extension that I'm using. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php

Re: [PHP-DEV] resepcting naming/style conventions

2003-07-28 Thread Justin Hannus
Ahh, yes. Please excuse my ignorance :) "Alan Knowles" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Justin Hannus wrote: > > >When writing an extension for an API (non-oop) that uses "studlyCaps" naming > >style, which naming style sho

[PHP-DEV] resepcting naming/style conventions

2003-07-25 Thread Justin Hannus
When writing an extension for an API (non-oop) that uses "studlyCaps" naming style, which naming style should be respected? PHP's underscore_delimited naming or the existing API's studlyCaps style? -- Justin Hannus -- PHP Internals - PHP Runtime Development Mailing List T

Re: [PHP-DEV] Re: Double warnings with session_start

2003-06-25 Thread Justin Hannus
Oops! <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Wed, 25 Jun 2003, Justin Hannus wrote: > > > 1 > > 2 > 3 session_start(); > > 4 ?> > > 5 session inizializzata > > > > It appears that line 1. has the "output"

[PHP-DEV] Re: Double warnings with session_start

2003-06-25 Thread Justin Hannus
1 2 5 session inizializzata It appears that line 1. has the "output" that forces the headers sent, in this case, just a newline. Anything outside the tags are treated as STDOUT forcing the php module to send the headers before you start your session. Try moving your 4 session inizializzata "