php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65431 Discarded qualifiers from pointer target warnings when using --enable-dtrace
Submitted: 2013-08-09 22:32 UTC Modified: 2013-08-14 18:38 UTC
From: sixd@php.net Assigned:
Status: Closed Package: Compile Warning
PHP Version: 5.4Git-2013-08-09 (Git) OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sixd@php.net
New email:
PHP Version: OS:

 

 [2013-08-09 22:32 UTC] sixd@php.net
Description:
------------
Here are some patches to fix cast warnings when --enable-dtrace is
used.  The dtrace utility typically discards/discarded 'const'
qualifiers. I don't have Zend karma to apply them myself.

The patches should be applied to PHP 5.4+ and then
'php zend_vm_gen.php' run. 

(The patches are a diff from the PHP-5.5 branch)



Patches

zend_exceptions.c.patch (last revision 2013-08-14 18:39 UTC by sixd@php.net)
dtrace_master.patch (last revision 2013-08-13 20:36 UTC by sixd@php.net)
dtrace_php55.patch (last revision 2013-08-13 20:36 UTC by sixd@php.net)
dtrace_php54.patch (last revision 2013-08-13 20:35 UTC by sixd@php.net)
dtrace_casts_2.patch (last revision 2013-08-13 03:16 UTC by laruence@php.net)
dtrace_casts.patch (last revision 2013-08-09 22:32 UTC by sixd)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-08-13 03:14 UTC] laruence@php.net
-Status: Open +Status: Feedback
 [2013-08-13 03:14 UTC] laruence@php.net
I got merge conflicts when I was trying to merge this patch.. 

I made a new one, but I dont have dtrace in my box avaliable.

so, could you please verify the patch?
 [2013-08-13 03:16 UTC] laruence@php.net
The following patch has been added/updated:

Patch Name: dtrace_casts_2.patch
Revision:   1376363806
URL:        https://bugs.php.net/patch-display.php?bug=65431&patch=dtrace_casts_2.patch&revision=1376363806
 [2013-08-13 20:35 UTC] sixd@php.net
The following patch has been added/updated:

Patch Name: dtrace_php54.patch
Revision:   1376426155
URL:        https://bugs.php.net/patch-display.php?bug=65431&patch=dtrace_php54.patch&revision=1376426155
 [2013-08-13 20:36 UTC] sixd@php.net
The following patch has been added/updated:

Patch Name: dtrace_php55.patch
Revision:   1376426192
URL:        https://bugs.php.net/patch-display.php?bug=65431&patch=dtrace_php55.patch&revision=1376426192
 [2013-08-13 20:36 UTC] sixd@php.net
The following patch has been added/updated:

Patch Name: dtrace_master.patch
Revision:   1376426210
URL:        https://bugs.php.net/patch-display.php?bug=65431&patch=dtrace_master.patch&revision=1376426210
 [2013-08-13 20:37 UTC] sixd@php.net
-Status: Feedback +Status: Open
 [2013-08-13 20:37 UTC] sixd@php.net
I've uploaded new patches for each branch. Can you apply them?  Your
patch was missing a couple of casts on DTRACE_FUNCTION_ENTRY
parameters.
 [2013-08-14 03:44 UTC] laruence@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=f4dc2240a048050a87a6e3e31573f13a2256cf2e
Log: Fixed #65431 (Discarded qualifiers from pointer target warnings when using --enable-dtrace) by Sixd
 [2013-08-14 03:44 UTC] laruence@php.net
-Status: Open +Status: Closed
 [2013-08-14 18:38 UTC] sixd@php.net
-Status: Closed +Status: Re-Opened
 [2013-08-14 18:38 UTC] sixd@php.net
Missed one in zend_exceptions.c.  I've reopened this bug and attached a new patch that applies to PHP 5.4, 5.5 and master.
 [2013-08-14 18:39 UTC] sixd@php.net
The following patch has been added/updated:

Patch Name: zend_exceptions.c.patch
Revision:   1376505556
URL:        https://bugs.php.net/patch-display.php?bug=65431&patch=zend_exceptions.c.patch&revision=1376505556
 [2013-08-15 03:50 UTC] laruence@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=8280393828e31913da45ba5ae5efbce34d90f8a8
Log: Fixed #65431 in zend_exception.c by Sixd
 [2013-08-15 03:50 UTC] laruence@php.net
-Status: Re-Opened +Status: Closed
 [2014-10-07 23:17 UTC] stas@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=8280393828e31913da45ba5ae5efbce34d90f8a8
Log: Fixed #65431 in zend_exception.c by Sixd
 [2014-10-07 23:17 UTC] stas@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=f4dc2240a048050a87a6e3e31573f13a2256cf2e
Log: Fixed #65431 (Discarded qualifiers from pointer target warnings when using --enable-dtrace) by Sixd
 [2014-10-07 23:28 UTC] stas@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=8280393828e31913da45ba5ae5efbce34d90f8a8
Log: Fixed #65431 in zend_exception.c by Sixd
 [2014-10-07 23:28 UTC] stas@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=f4dc2240a048050a87a6e3e31573f13a2256cf2e
Log: Fixed #65431 (Discarded qualifiers from pointer target warnings when using --enable-dtrace) by Sixd
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 17:01:58 2024 UTC