Re: [PHP-DEV] Re: multi-threaded run-tests.php

2007-07-27 Thread Sebastian Bergmann
Rasmus Lerdorf wrote: > make test TESTS=ext/foo > > Or, add this little shell script which I call phpt: > > #!/bin/bash > TEST_PHP_EXECUTABLE=/usr/local/bin/php > php /usr/local/lib/php/build/run-tests.php $1 > > Then cd into whatever directory has your tests and type: > > phpt . Yeah, lettin

RE: [PHP-DEV] php5 as universal binary (Mac OS X)

2007-07-27 Thread Uwe Schindler
On http://developer.apple.com/documentation/Porting/Conceptual/PortingUnix/comp iling/chapter_4_section_3.html Apple states: "However, applications that make configuration-time decisions about the size of data structures will generally fail to build correctly in such an environment (since those

Re: [PHP-DEV] Log4P Project Class Names

2007-07-27 Thread Will Fitch
I agree on both the naming convention (log4j_*), as well as the standard naming convention. There seems to be plenty of sources to suggest different things, but no official declaration within PECL. On 7/26/07, Richard Lynch <[EMAIL PROTECTED]> wrote: > > On Wed, July 25, 2007 6:20 pm, Will Fitch

Re: [PHP-DEV] php5 as universal binary (Mac OS X)

2007-07-27 Thread Antony Dovgal
On 27.07.2007 14:47, David Wang wrote: Isn't an universal binary just two binaries packaged together? Yes. One has to be compiled for Intel and the other for PowerPC. GCC is able to build both on Intel. How exactly is this currently being done in a single run on Christian's machine? It

[PHP-DEV] php5 as universal binary (Mac OS X)

2007-07-27 Thread Christian Speich
hello, I have asked in the gernal php list and they say I should be ask here: I have an problem with php5 as universal binary on Mac OsX. The universal binary was build on an intel mac and it works good... on an intel mac ;) When a friend it try on an ppc mac he had some problems. For example

Re: [PHP-DEV] php5 as universal binary (Mac OS X)

2007-07-27 Thread Antony Dovgal
Intel Mac is little-endian, PPC Mac is big-endian. Endiannes is detected during configure run, that's why the binary works fine on Intel Mac, but not on PPC. To make it work on both you either need to build separate binaries on PPC and Intel, and then merge them (IIRC that was possible), or you

Re: [PHP-DEV] php5 as universal binary (Mac OS X)

2007-07-27 Thread Jani Taskinen
Just sponsor me with one of these Apple laptops and I can see what I can do for it.. ;) --Jani On Fri, 2007-07-27 at 13:45 +0400, Antony Dovgal wrote: > Intel Mac is little-endian, PPC Mac is big-endian. > Endiannes is detected during configure run, that's why the binary works fine > on Intel Ma

RE: [PHP-DEV] php5 as universal binary (Mac OS X)

2007-07-27 Thread Uwe Schindler
The simpliest would be to create a patch that is included *after* the configure-generated .h file. I do not exactly now, in which PHP/Zend specific .h file the configure generated php_config.h one is included, but that would be the place to place the following macro: #if defined(MACOSX) (I do no

Re: [PHP-DEV] php5 as universal binary (Mac OS X)

2007-07-27 Thread Antony Dovgal
On 27.07.2007 14:23, Uwe Schindler wrote: The simpliest would be to create a patch that is included *after* the configure-generated .h file. I do not exactly now, in which PHP/Zend specific .h file the configure generated php_config.h one is included, but that would be the place to place the foll

Re: [PHP-DEV] php5 as universal binary (Mac OS X)

2007-07-27 Thread David Wang
Isn't an universal binary just two binaries packaged together? One has to be compiled for Intel and the other for PowerPC. How exactly is this currently being done in a single run on Christian's machine? Is there a special build tool that runs the compilation twice or a special compiler that genera

RE: [PHP-DEV] php5 as universal binary (Mac OS X)

2007-07-27 Thread Christian Speich
thanks, thats great :) I would be try now if it works. I add these two lines after the configure to the main/php-config.h i hope its correct: #undef WORDS_BIGENDIAN #define WORDS_BIGENDIAN __BIG_ENDIAN__ thank you, kleinweby :) Am Freitag, den 27.07.2007, 12:23 +0200 schrieb Uwe Schindler: >

RE: [PHP-DEV] php5 as universal binary (Mac OS X)

2007-07-27 Thread Christian Speich
it looks good, very good :) i have add the followings lines to the php-config.h #if defined(__BIG_ENDIAN__) # undef WORDS_BIGENDIAN # define WORDS_BIGENDIAN __BIG_ENDIAN__ #endif Note: __BIG_ENDIAN__ is only defined when we bulid ppc thank you, kleinweby Am Freitag, den 27.07.2007, 12:47 +02

[PHP-DEV] Detect Change in function table

2007-07-27 Thread Xavier De Cock
Hello I'm currently working on the bbcode pecl extension. This extension provides callback facilities for handling datas. Therefore I have to get the function pointer from the function table and work with those pointers. This extension will only throw a warning when a callback can not be found b

Re: [PHP-DEV] Re: Type-hinted return values in PHP5?

2007-07-27 Thread David Duong
It would give you similar benefits to input type hinting, but instead of "Functions are now able to force parameters to be objects...", it would also read "Calling functions are now able to expect return types to be objects...". If a function was defined to return object Z, but instead returned