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($
...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
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
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
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
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
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
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
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
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
> 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
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
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
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
--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
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
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
> 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
_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
------
maintaining opendirectory extension
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
>
>
> >
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
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
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
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
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
(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]);;
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
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
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
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
> >>
"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
> 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
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
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
> 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
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
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
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"
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
"
41 matches
Mail list logo