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

2005-05-12 Thread sumoraigabe-php

--- "D. Walsh" <[EMAIL PROTECTED]> wrote:
> I've been trying to build PHP in Mac OS X Server
> 10.4.0
> 
> The OS is a fresh install with the appropriate
> graphic libs installed
> 
> It fails to configure with the switch '--with-gd'
> citing the  
> following error.

Hmm... I was able to configure and make 5.0.4 with GD
without problems.

What version of PHP are you building?

Can you provide the entire ./configure line?

Have you installed the new version of Xcode from the
10.4 DVD?


- Gabriel

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] Why can constants only be scalars?

2004-05-08 Thread sumoraigabe-php
--- Robert Cummings <[EMAIL PROTECTED]> wrote:
> On Sat, 2004-05-08 at 03:19, Andi Gutmans wrote:
> > At 09:16 PM 5/7/2004 -0700, Sara Golemon wrote:
> > >Long ago I was told constants could only be
> scalars, so I accepted it.
> > >Certainly ZEND_FUNCTION(define) does the check to
> ensure it's a scalar, but
> > >why?
> > >
> > >For what I can tell a zend_constant is just a
> container for an ordinary zval
> > >which is refcounted and all that fun stuff.  I
> don't see any obvious reason
> > >for this restriction, and my tests with those
> restrictions removed seem safe
> > >enough so far...  Can someone spell it out for me
> with little words?
> > 
> > I don't remember all of the reasons, but the main
> reason is that it just 
> > makes sense (IMO). I think constant values should
> be easily seen when 
> > reading through source code. Having to read logic
> to see what values are in 
> > the constants doesn't make much sense to me. I'd
> use variables for that.
> > If we start talking about class constants then
> it's obviously even more 
> > important for them to be constants. You can't
> evaluate values during the 
> > class definition as you don't have variables
> defined yet. I wouldn't want 
> > define() to behave different from const.
> 
> I always thought constants were about imposing an
> unchanging nature to
> the data and not about visual aesthetics when
> reading code :/ I too
> would like to see constant support of non-scalar
> values.


Same here. I have a number of static arrays that I use
for reference data that are usually encapsulated in a
function, or a global / session variable. It would be
very handy to be able to define a constant array
instead.

- Gabriel

=

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] Why can constants only be scalars?

2004-05-08 Thread sumoraigabe-php

--- Robert Cummings <[EMAIL PROTECTED]> wrote:
> On Sat, 2004-05-08 at 12:35, Sara Golemon wrote:
> > > > I always thought constants were about imposing
> an
> > > > unchanging nature to
> > > > the data and not about visual aesthetics when
> > > > reading code :/ I too
> > > > would like to see constant support of
> non-scalar
> > > > values.
> > >
> > >
> > > Same here. I have a number of static arrays that
> I use
> > > for reference data that are usually encapsulated
> in a
> > > function, or a global / session variable. It
> would be
> > > very handy to be able to define a constant array
> > > instead.
> > >
> > 
> > Whoa... easy, don't go putting words in my
> mouth...
> > 
> > I never said I wanted constants to allow
> arrays/objects, just wanted to
> > understand the reasoning which Andi explained
> well.  I also had an a-ha
> > moment over breakfast:  A constant array would
> require the allowance of
> > syntax like echo FOO[0];  which is, for my part,
> ugly.
> 
> The problem I see with the "ugly argument" is that
> if non-scalars were
> allowed for constants then YOU (and I and everyone
> else) would have the
> option of opting out of using constants for
> non-scalars (and
> subsequently the above "ugly" syntax). Personally I
> don't see anything
> ugly or wrong with using the above syntax.
> 
> Cheers,
> Rob.

Agreed. "ugly" is a subjective argument and does not
change the usefulness of that particular ability.
Where would the C language be without the ability to
define arbitrary constant values?

- Gabriel

=

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DEV] Microsoft Scraping Email Addresses From PHP Internals List?

2004-06-20 Thread sumoraigabe-php

I know it's off topic, and I appologize, but I lurk on
this mailing list using a disposable address to avoid
spam, and now I'm receiving it as a result of being on
the list (or posting to it). I have now received three
separate Microsoft
emails (security updates and such) at this address,
which is only used for sending and receiving mail from
the list. Pretty annoying for someone who doesn't use
their products. Thankfully I can just whip up a new
address and resubscribe, but I figured I'd let you
folks know in case you're receiving the same crap.

- Gabriel

=

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DEV] expected behavior of call_user_function()

2004-06-25 Thread sumoraigabe-php
Is it expected that call_user_function() will free up
memory allocated to the function name and argument array?

=

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DEV] intercepting function calls

2005-02-08 Thread sumoraigabe-php
Is it possible to intercept a function call (user
space or built-in) in the Zend Engine and execute user
space code before/after the function call?

=

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] Re: intercepting function calls

2005-02-09 Thread sumoraigabe-php

--- George Schlossnagle <[EMAIL PROTECTED]> wrote:

> 
> On Feb 9, 2005, at 10:57 AM, Sara Golemon wrote:
> 
> >> Is it possible to intercept a function call (user
> >> space or built-in) in the Zend Engine and execute
> user
> >> space code before/after the function call?
> >>
> > Yes, you can do this by way of a Zend extension
> (not a PHP extension 
> > mind
> > you).
> >
> > The parts of Zend/zend_extensions.h you'll want to
> pay attention to 
> > are:
> 
> You can also do this by directly wrapping
> zend_execute.  This is the 
> preferred method if you're writing a profiler or
> such.
> 
> George


Thanks, to both of you. I'm mostly just curious, but I
may actually create an extension to provide user space
ability to intercept function/method calls and execute
code before / after them. 

I made a comment about the Aspect Oriented PHP article
on /. back in January that it'd be better to implement
that type of call interception within PHP itself, not
using some kind of preprocessor. The damn idea's been
stuck in my brain ever since. 

So, just to be clear... Will using
call_user_function() either from the hooks or a
zend_execute() wrapper cause any problems in the zend
engine? 

- Gabriel

=

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] Creating a Module

2005-02-12 Thread sumoraigabe-php
I found the book Advanced PHP Programming to be quite
helpful when I started working on the zeroconf
extension. There's a number of chapters dealing with
extensions and Zend engine internals.

--- Chris Cranford <[EMAIL PROTECTED]>
wrote:

> I'm trying to create my first module and I am having
> a bit of trouble.  Is
> there any example modules available I could review
> to get a better
> understanding of how to write them?
> 
> Thanks
> 
> -- 
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

=

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php