Mailinglist Archive: opensuse-amd64 (314 mails)
| < Previous | Next > |
apache+php 64 calling elf32 exe
- From: Riccardo Ghiglianovich <riccardo@xxxxxxxxxxxxxxxx>
- Date: Tue, 29 Mar 2005 14:44:24 +0000 (UTC)
- Message-id: <3477bc93324377ebc84dbaf54b11d9ad@xxxxxxxxxxxxxxxx>
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 <stdio.h>
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
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 <stdio.h>
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
| < Previous | Next > |