Re: [PHP] Failing FastCGI PHP

2006-05-15 Thread Mike Milano

chris smith wrote:

On 5/14/06, Frank de Bot [EMAIL PROTECTED] wrote:

I'll start by compiling php with --enable-debug

At the moment I get backtrace results like this:

#0  0x48c7d95b in memcpy () from /usr/lib/libc_r.so.4
#1  0x8977280 in ?? ()
#2  0x10 in ?? ()
#3  0x894e500 in ?? ()
#4  0x894dc00 in ?? ()
#5  0x8962000 in ?? ()
#6  0x8960200 in ?? ()
#7  0x894e4e0 in ?? ()
#8  0x894e4c0 in ?? ()
etc etc etc...

Thus useless :P


Unfortunately yes, rather useless :(

Might get better help on the internals list (I don't know what else to
suggest, was hoping someone else might jump in and help you!).




There seems to be a bug with 5.1.4 and FastCGI.  I'm running Windows and 
had an issue with 5.1.4 as well.  I reported a but and was advised to 
try 5.2 from http://snaps.php.net/


FastCGI works for me with 5.2.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] dynamic loading and build configurations

2006-03-30 Thread Mike Milano
What exactly does the --with in --with-curl mean?  I've built php5.1.2 
on windows, and I thought that it would compile curl into the binary.


It does not.  I still need to declare CURL as an extension in the 
php.ini file for it to work. i.e. extension=php_curl.dll


Is this normal behavior?  The same thing happens with openssl and zip.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] --enable-radius, not found

2006-03-28 Thread Mike Milano

Chris wrote:

Mike Milano wrote:
I'm trying to compile PHP with radius enabled.  I have the pecl source 
and I can use other pecl extensions just fine.


When I type: cscript /nologo configure.js --help, I do not see any 
option for radius.


I've also tried to compile the dll by itself, but it is simply not found.

My system is WinXP using the platform SDK for Win2k to compile.  I get 
the same results compiling in VC7.


Any insight into what might be causing this would be greatly appreciated.


Can you try the binary?

http://pecl4win.php.net/list.php/5_1

That is the back-up plan.  I was hoping to get everything into the 
executable.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: PHP installation determination

2006-03-28 Thread Mike Milano

Bronislav Klucka wrote:

Hi,
I'm using 2 copies of PHP
1/ on local computer for developing
2/ on web server regular running webs

Is there any way to determine what PHP i'm using? Where am I?. Can I 
somehow define my own constant in php.ini?


Brona


Is the server IP good enough for this? $_SERVER['SERVER_ADDR']

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] --enable-radius, not found

2006-03-27 Thread Mike Milano
I'm trying to compile PHP with radius enabled.  I have the pecl source 
and I can use other pecl extensions just fine.


When I type: cscript /nologo configure.js --help, I do not see any 
option for radius.


I've also tried to compile the dll by itself, but it is simply not found.

My system is WinXP using the platform SDK for Win2k to compile.  I get 
the same results compiling in VC7.


Any insight into what might be causing this would be greatly appreciated.

Thank you,

Mike Milano

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Error Suppression with '@'

2005-08-08 Thread Mike Milano
my guess is that he is just trying to avoid errors in case the variable 
is not an actual array.


arrays can easily be tested for by using: is_array( $myarray );

another way to manage arrays is to initialize them before you do 
anything with them. i.e.: $myarray = array();


this way if you need to call an array specific function which would 
normally throw an error because it's expecting an array as an argument, 
it won't choke.


everyone is entitled to their own opinion, but i would just call 
suppressing errors on EVERY array function just plain lazy and very poor 
coding practice.




Justin Burger wrote:

Good Morning,
I was having a discussion with a fellow PHP Developer this morning and he
mentioned that he put's an '@' sign in front of all function calls, and
every time he accesses an array;

I know that this is sloppy, and dangerous, but I don't know exactly what
this exposes him to, can any one give me any real world examples of why
this is bad, so I can relate it to his code?

php.net does not have much information about this. It seems like
suppressing errors, rather then catching them is problematic.


Thanks Again.

Justin.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php