php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30560 Incompatible pointer type in standard/exec.c
Submitted: 2004-10-26 11:01 UTC Modified: 2004-11-12 01:00 UTC
From: jbarwick at sentienthealth dot com Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 4.3.8 OS: SuSE 9.1 (amd64)
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2004-10-26 11:01 UTC] jbarwick at sentienthealth dot com
Description:
------------
OUCH!  Now I'm concerned....VERY concerned...how many changes will we have to do...really getting difficult!

zend_rsrc_list_entry is defined in zend_globals.h as a structure where zend_rsrc_list_entry->ptr is defined "of course" as a pointer ...in the 64 bit world, let's call that 64 bits...

in exec.c, we refer to a HANDLE (for win32..ok 32 bit) or for UNIX a (pid_t)...which is, I suspec, an OS specific integer (process id)...

now, zend objects...do we just need to store 32 bits in zend_rsrc_list_entry->ptr?  Or do we need to store a memory address pointer?  If so, is this going to be compatible with a 32 bit process identifier...or, is there just something wrong with my configure script and pid_t is suppose to be 64 bit!....

Didn't remember getting all these errors with 5.0 compile...any chance 5.0 compile will be able to use sablotron?  (Yes, the readme file says it's in the external functions library...but when I checked, wasn't on the web site for download...no trace of it...)...

I guess there's no 64 bit environment for me!!!

On line 610 and line 1029 of

ext/standard/exec.c....how to we get around this 32 bit/64 bit problem?

Reproduce code:
---------------
compile exec.c

Expected result:
----------------
no problem with 64 bit environments

Actual result:
--------------
serious problem with 64 bit environments

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-11-04 13:06 UTC] tony2001@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.


If you get an error in compile time, then where is the error message?
 [2004-11-12 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 14 15:01:30 2024 UTC