Re: [Rd] example package for devel newcomers

From: Alexandre Aguiar <>
Date: Wed, 03 Aug 2011 14:19:42 -0300


Em Quarta 03 Agosto 2011, vocÍ escreveu:
> In that light you may want to explain why you need 2-5 since the
> easiest way is to simply link to libphp.

Resources accessible to libphp through apache are limited by ssytem configurations. With libphp fully available to every user there are potential problems. For instance, snooping into system configurations especially in networked applications or a maliciously hacked user compiled libphp.

About 2: the need for configuration changes tailored to local restrictions. Have convinced myself that building R_CMethodDef and R_CallMethodDef dinamically will be better. For instance, in a "precompiled scenario" php functions that make use of db4 libraries would cause a crash if those libraries are not available.

About 5: a user could redefine parameters to "reuse" libphp directly using "good guy" loading mechanism of Rphp. While Rphp itself would be harmless, loading its library would make libphp available within the R process. R might be used as unsuspected hacking tool.

I mean, exporting functions from libphp can be good or evil and potentially harmful without the limits imposed by apache and with the potential use of a hacked libphp.

> As for 7, R uses mingw gcc (see Windows FAQ, we provide all the tools)
> so as long as php can be built that way there should due no issues.

I'll check that out asap.

Regarding recursion and stack size, I have been assured by a php developer that it currently is not a concern. Have also found that a recursion problem with libpcre (used by libphp) has been solved.

In a phrase: problems I foresee are related to deployment of libphp and potential security breaches.

Thanx and cheers.



Alexandre Santos Aguiar, MD, SCT

______________________________________________ mailing list

Received on Wed 03 Aug 2011 - 17:22:32 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 03 Aug 2011 - 20:10:13 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive