Hi all,
I am new here;
I have found that if I call an ELF32 Executable program from a php page
loaded by a 64 bit PHP module then I obtain a shared library error,
even if the program does not require the library.
practical example:
compile this
====== pro.c
#include
main()
{
printf("Hello world\n");
}
------ cc -o pro -m32 pro.c
then call it from a php page:
========= r.phtml
<?php
$s = "/tmp/pro 2>/tmp/er 1>&2";
echo "$s : ";
$rrr=exec($s);
echo `cat /tmp/er`;
echo "<hr>";
// just to test that it works...
$s = "ls -al /tmp 2>/tmp/er 1>&2";
echo "$s : ";
$rrr=exec($s);
echo `cat /tmp/er`;
?>
---- http://localhost/r,phtml
issuee? Error?Bug? my fault???
Hints? I cannot recompile at 64 all my programs ...
Thanks,
regards,
Ric