[PHP] debugging PHP memory corruption

2012-01-04 Thread Andrew Morum
We've got a problem with PHP 5.3.8 and a third party (open source) library (WSo2 SOAP). At some point during the request to the PHP script, some structures seem to be getting corrupted causing PHP to crash. Depending on the code in the PHP script, it's either crashing during in a print_r/var_

Re: [PHP] New to mac and trying to define a php.ini file.

2012-01-04 Thread TR Shaw
On Jan 4, 2012, at 9:09 AM, Richard Quadling wrote: > Hi. > > Where do I put my php.ini file for a MacBook Air? I've only had it 2 > days and having trouble with the date.timezone setting. > Open terminal type php -i search for php.ini you will find it in /etc where is should be on unix.

Re: [PHP] New to mac and trying to define a php.ini file.

2012-01-04 Thread L M Andrews
Hi, >Or should I just be looking somewhere else? Yes, if you're setting up a local development environment on a Mac, the painless solution is to install MAMP ("m" as in Mac). Everything installs into a single folder (easily deletable, too) without modifying any of the original versions that might

Re: [PHP] New to mac and trying to define a php.ini file.

2012-01-04 Thread Bastien
On 2012-01-04, at 10:03 AM, L M Andrews wrote: > Hi, > >> Or should I just be looking somewhere else? > > Yes, if you're setting up a local development environment on a Mac, the > painless solution is to install MAMP ("m" as in Mac). Everything installs > into a single folder (easily deletabl

[PHP] Re: New to mac and trying to define a php.ini file.

2012-01-04 Thread Phil Dobbin
On 4/1/12 14:09, "Richard Quadling" wrote: > Where do I put my php.ini file for a MacBook Air? I've only had it 2 > days and having trouble with the date.timezone setting. > > I've also had to install xampp (recommended - no idea about it) for > Apache with PHP. > > Different versions of PHP no

Re: [PHP] debugging PHP memory corruption

2012-01-04 Thread Matijn Woudt
On Wed, Jan 4, 2012 at 3:34 PM, Andrew Morum wrote: > We've got a problem with PHP 5.3.8 and a third party (open source) > library (WSo2 SOAP). > > > > At some point during the request to the PHP script, some structures seem > to be getting corrupted causing PHP to crash. > > > > Depending on the

[PHP] ext/mbstring compile time dependency

2012-01-04 Thread Tom Worster
What does this mean in the PHP Change Log: "Removed compile time dependency from ext/mbstring (Dmitry)" Does it mean that mbstring is available by default in PHP 5.4? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] New to mac and trying to define a php.ini file.

2012-01-04 Thread Tim Streater
On 04 Jan 2012 at 14:09, Richard Quadling wrote: > Where do I put my php.ini file for a MacBook Air? I've only had it 2 > days and having trouble with the date.timezone setting. Hmmm, looks like I haven't got one on my Mini. Which doesn't appear to matter as a number of PHP scripts will have b

Re: [PHP] New to mac and trying to define a php.ini file.

2012-01-04 Thread Robert Williams
On 1/4/12 13:33, "Tim Streater" wrote: >What I do seem to have is /etc/php.ini.default which I suppose you could >rename to php.ini if you really wanted to modify it. Yes, this is correct. I'm not sure if Apple started doing this with Lion or before, but they give you the .default file to renam

Re: Re: [PHP] New to mac and trying to define a php.ini file.

2012-01-04 Thread Tim Streater
On 04 Jan 2012 at 21:01, Robert Williams wrote: > On 1/4/12 13:33, "Tim Streater" wrote: > > Also, if I remember right, Apple sets up Apache so that each user has > his/her own config file inside the conf folder. You should make any config > changes, such as turning on PHP, in there, rather tha

Re: [PHP] New to mac and trying to define a php.ini file.

2012-01-04 Thread Robert Williams
On 1/4/12 14:34, "Tim Streater" wrote: >As I hinted in my previous mail, client and server side of my app are >always on the user's machine. When the user starts the app, I create an >apache config file on the fly and run an instance of apache just for the >user. So I'm not messing with the stand

Re: Re: [PHP] New to mac and trying to define a php.ini file.

2012-01-04 Thread Tim Streater
On 04 Jan 2012 at 21:59, Robert Williams wrote: > On 1/4/12 14:34, "Tim Streater" wrote: > >> As I hinted in my previous mail, client and server side of my app are >> always on the user's machine. When the user starts the app, I create an >> apache config file on the fly and run an instance of

[PHP] Date function kill lots time !

2012-01-04 Thread xucheng
hi all, I have a webapp which track visitors, and use xhprof for profiling my codes . After reading some reports produced by xhprof, i found that function Date() kills most time of my app ! how can this happen ? Is this function has some internal issue that i should kown ? Any comment a

Re: [PHP] Date function kill lots time !

2012-01-04 Thread Adam Richardson
On Wed, Jan 4, 2012 at 11:07 PM, xucheng wrote: > hi all, > I have a webapp which track visitors, and use xhprof for profiling my > codes . > After reading some reports produced by xhprof, i found that function > Date() kills most time of my app ! > how can this happen ? Is this function ha