
![]() |
georgiecasey
Anyone else get seg faulted when using
PHPfrom the shell? I'm no C coder so don't have a clue where to even start to debug this. Anyone...perkiset
is it from the moment of instantiation? Can you get through <some> lines of code before it blows?
You should put some echo "0 "; echo "1 "; lines in your code at various points to ascertain if it's a compile problem (ie., NOTHING runs) or a problem with a specific library. Are you using any special libs? Has this code worked forever and it suddenly is not? There's about a bazillion more symptoms that you need to pull out for anyone here to do any real triage. georgiecasey
Absoultely nothing runs - just get that error message. Using the
phpapility library for accessing the Google adwords API. The weird thing is, the library works on onelinuxserver I have and not the other. I thoughtPHPis an interpreter that has been compiled already so i shouldn't get this error withPHP. I have loads ofPHPshell scripts that work fine. Cheers for any help perkthedarkness
Put a line before each existing line of your file like this;
print 1; print 2; print 3; print 4; And find out EXACTLY what line it segfaults on, if it doesn't print ANY output (i.e. print 1; doesn't even fire) then it is most prolly a bug in the preprocessor or some kind of library mismatch. Post results here, we will try to figure it out. Cheers, td perkiset
Looks like it's a binary problem TD...
GC - you may need to get the source for the library and recompile it. It is rare when you can take a compiled image in the *nix world and simply install it and it will run fine... there are little tweaks and such for each machine that will make each compile slightly different.My suggestion (if I were you) - DL the source for PHPand the lib and recompile for each piece of hardware. The interpreter is native, not a java app - so it is compiled specifically for amachine.Good luck, /p thedarkness
I'd call yum update or the apt equivalent on each package before compiling from source if it were me.
Cheers, td perkiset
Yeah, but he's an Aussie, and you know about THEM... :
![]() thedarkness
Seppo wanker.
perkiset
Cross dressing poofter.
thedarkness
That reminds me, I need to look into some undies ;-)
Cheers, td perkiset
You know I've gotcha covered, even at 3am lad...
![]() dink
Who says the Cache doesn't get gheyed up.
![]() perkiset
Well yeah, but at least we're polite about it
![]() thedarkness
quote author=dink link=topic=844.msg5941#msg5941 date=1206675547 Who says the Cache doesn't get gheyed up. ![]() Whoever they are they need to be spanked with a black patent leather riding crop! Cheers, td dink
Does that come with ermine trimmed restraints? Or is it just in the ordinary old mink trim? Mink is soooo 2000.
thedarkness
Choice of pink mink or pink ermine, hand cuffs and matching leg irons.
Cheers, td dink
![]() Cool. Even at 3 A.M. perkiset
Oooooooh... leg irons :shiver:
|

Thread Categories

![]() |
![]() |
Best of The Cache Home |
![]() |
![]() |
Search The Cache |
- Ajax
- Apache & mod_rewrite
- BlackHat SEO & Web Stuff
- C/++/#, Pascal etc.
- Database Stuff
- General & Non-Technical Discussion
- General programming, learning to code
- Javascript Discussions & Code
- Linux Related
- Mac, iPhone & OS-X Stuff
- Miscellaneous
- MS Windows Related
- PERL & Python Related
- PHP: Questions & Discussion
- PHP: Techniques, Classes & Examples
- Regular Expressions
- Uncategorized Threads