Re: [PHP-DEV] [PATCH] __toString()

2006-01-26 Thread Marcus Boerger
Hello Jeremy, it is supposed to work everywhere in head and will be available in 5.2. regards marcus Friday, January 27, 2006, 12:54:28 AM, you wrote: > Hello All, > Was this actually added into PHP? Can anyone confirm if PHP's toString() > magic method will work everywhere a string is used

Re[2]: [PHP-DEV] usleep() on win32

2006-01-26 Thread Tom Rogers
Hi Wez, Friday, January 27, 2006, 11:24:33 AM, you wrote: WF> We've had working usleep on windows since november 2003 in the PHP 5 branch. WF> Check out win32/time.c WF> --Wez. Thanks for the pointer, was using php-gtk1 so php5 was out of the question and a quick look at the same file showed no

[PHP-DEV] Why this link error

2006-01-26 Thread taft
I use MVC 6 to get my extension compiled, but when it linked, the IDE issued the following error: myfile.obj : error LNK2001: unresolved external symbol _executor_globals_id Release/php_myfile.dll : fatal error LNK1120: 1 unresolved externals Error executing link.exe. my code is simple: PHP_FUNC

Re: [PHP-DEV] usleep() on win32

2006-01-26 Thread Wez Furlong
We've had working usleep on windows since november 2003 in the PHP 5 branch. Check out win32/time.c --Wez. On 1/27/06, Tom Rogers <[EMAIL PROTECTED]> wrote: > Hi > > Here is a small change to usleep so it will work with win32. > It is very useful for tight while loops when using socket functions

[PHP-DEV] usleep() on win32

2006-01-26 Thread Tom Rogers
Hi Here is a small change to usleep so it will work with win32. It is very useful for tight while loops when using socket functions and reduces cpu load from 100% to 0%-2% (on my win2k box) by just adding usleep(1000); after the while(). (Code snippet was taken from pgsql) Diff is from php-4.4 cv

Re: [PHP-DEV] [PATCH] __toString()

2006-01-26 Thread Jeremy Johnstone
Hello All, Was this actually added into PHP? Can anyone confirm if PHP's toString() magic method will work everywhere a string is used (aka printf, switch, etc)? If so, will this be possibly available in the 5.1x branch (since it's sorta a bug/consistency fix) or will it only make it into the next

[PHP-DEV] Re: Need help in defining a class from C code.

2006-01-26 Thread Sara Golemon
> I'm currently working on a tiny "wrapper" > in C++ which will aid in easy embeding PHP > in C++ apps. > What functionality is it that you feel is lacking from sapi/embed? I know that C != C++, but C++ can certainly link against C libraries and using sapi/embed is pretty well dirt-simple. Or wer

Re: [PHP-DEV] Need help in defining a class from C code.

2006-01-26 Thread Marcus Boerger
Hello Kiput, Why not put it in pecl under the php license or that copyright only thing? Thursday, January 26, 2006, 11:30:17 PM, you wrote: > Hi. > Sorry, I didn't mean to insult anyone here. I love PHP, but it's > internals are undocumented, and are really hard to work with for > someone witho

Re: [PHP-DEV] Need help in defining a class from C code.

2006-01-26 Thread Kiput
Hi. Sorry, I didn't mean to insult anyone here. I love PHP, but it's internals are undocumented, and are really hard to work with for someone without prior experience. That's why I'm writing this wrapper - to make it easy to embed PHP into other apps. It's a shame that no one wrote something like

Re: [PHP-DEV] JSON inclusion in core

2006-01-26 Thread Jim Plush
From the enterprise point of view I think having the JSON extension built into PHP will bring JSON usage to the forefront of "AJAX" development. I've been using Omar's extension here at McAfee with great success lately... rolling out rich UI app prototypes. Shared Host users without access to

Re: [PHP-DEV] Need help in defining a class from C code.

2006-01-26 Thread Marcus Boerger
Hello Kiput, look into ext/spl/spl_array.c or here: http://talks.somabo.de & nobody stops you from making it less messy if you think it is, this is all open source. Wednesday, January 25, 2006, 3:31:07 PM, you wrote: > Hi. > I'm currently working on a tiny "wrapper" in C++ which will aid

Re: [PHP-DEV] Need help in defining a class from C code.

2006-01-26 Thread Jeremy Johnstone
Kiput, Even if you are right about the state of the PHP/Zend code/documentation (which I am not commenting on either way), it's definitely not a wise idea to insult the very people who wrote that code when asking for their assistance. With that said, if no one else steps up with a code snippet bef

[PHP-DEV] Strange issue from command line

2006-01-26 Thread Marco Bambini
Hi, I have developed a php extension for OSX (PHP 4.4) and it works fine under Apache. The only issue I found is that if I execute a simple php command from the command line then I receive an "undefined symbol" error. For example: % php -r "print ini_get('extension_dir');" dyld: lazy symbo