Re: Profile / Debug w/o server modification?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Richard Lynch" <ceo@xxxxxxxxx>
Your dev box should only match in software versions (okay, and any
really funky specialized hardware like a hardware random number
generator MAYBE).

Don't ask them for a Gigaplex Mu-on 16-cpu 64 Gig RAM 4 Terabyte hard
drive box.

Take an old box out of your closet and install the same versions of
the OS, Webserver, DB, and PHP and call it done.

Now, a QA box, where you do load-testing and serious "release
candidate" testing, yeah, THAT should match the production box, if at
all possible...

Do you know of any (free as in money) disk imaging software that would capture all the patches/configurations/etc. Actually, as I write this, I remember the reason the imaging tool I used had mysterious failures was probably due to bad memory, and I could use a different box now.

Thanks for the advice.

Regarding duplicating the box versus software:
I'm working on a C++ project on a Mac Pro and a MacBook Pro. Both have Intel Core 2 Duo (but the Mac Pro states Xeon, while the MacBook Pro does not detail that. The Mac Pro is 4 cores while the MacBook Pro is 2 cores). Both use MinGW for Mac 3.4.5, the same mtapi http://www.metaquotes.net/files/mtapi.zip and Wine 0.9.40. Same OS version of course, and only 2GB RAM in both each. I was able to compile on the Mac Pro, but when I tried on the MacBook Pro, I receive undefined reference to _WinMain@16. I also saw that on the Mac Pro, but I don't remember exactly what I did to resolve it. I used -shared on the MacBook Pro, and I know I did not use that on the Mac Pro. But now I'm getting

../Client/MetaTraderAPI.o: In function `atexit':
/Volumes/senscass/mingw/build_runtime/../mingw-runtime-3.9/dllcrt1.c:161: multiple definition of `_atexit' /usr/local/i386-mingw32-3.4.5/lib/gcc/i386-mingw32/3.4.5/../../../../i386-mingw32/lib/crt2.o:/Volumes/senscass/mingw/build_runtime/../mingw-runtime-3.9/crt1.c:269: first defined here
../Client/MetaTraderAPI.o: In function `_onexit':
/Volumes/senscass/mingw/build_runtime/../mingw-runtime-3.9/dllcrt1.c:177: multiple definition of `__onexit' /usr/local/i386-mingw32-3.4.5/lib/gcc/i386-mingw32/3.4.5/../../../../i386-mingw32/lib/crt2.o:/Volumes/senscass/mingw/build_runtime/../mingw-runtime-3.9/crt1.c:277: first defined here
../Client/MetaTraderAPI.o: In function `_onexit':
/Volumes/senscass/mingw/build_runtime/../mingw-runtime-3.9/dllcrt1.c:183: multiple definition of `___do_sjlj_init' /usr/local/i386-mingw32-3.4.5/lib/gcc/i386-mingw32/3.4.5/crtbegin.o:crtstuff.c:(.text+0x0): first defined here

It was concept code from my memory and I'm going to have to make sure I duplicate my steps, but other than the processor, I thought I had identical environments.

I haven't had time to test the PHP environment you suggested.

_________________________________________________________________
Local listings, incredible imagery, and driving directions - all in one place! http://maps.live.com/?wip=69&FORM=MGAC01

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux