The usual technique is to interpose your own library call above the usual call. See LD_PRELOAD and dlsym(). For an interpreted language like PHP use strace and friends to see which library calls the PHP fgets() uses (it need not be fgets(), it could be read()). -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
- [SLUG] making fgets fail during testing Ashley Maher
- Re: [SLUG] making fgets fail during testing Rick Welykochy
- Re: [SLUG] making fgets fail during testing Maxim Zakharov
- Re: [SLUG] making fgets fail during testing Menno Schaaf
- Re: [SLUG] making fgets fail during testing Glen Turner
- Re: [SLUG] making fgets fail during testing Amos Shapira
