php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74406 Invalid integer constant expression error in php.h
Submitted: 2017-04-10 15:37 UTC Modified: 2017-04-10 16:21 UTC
From: acuna dot personal at gmail dot com Assigned: laruence (profile)
Status: Closed Package: *Compile Issues
PHP Version: 7.1.3 OS: Windows 10.1 x64
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: acuna dot personal at gmail dot com
New email:
PHP Version: OS:

 

 [2017-04-10 15:37 UTC] acuna dot personal at gmail dot com
Description:
------------
Hello! I'm getting a error

C:\PHP\sdk\phpdev\vc14\x86\php-7.1.3-src\main/php.h(326): fatal error C1017: invalid integer constant expression.

when compile projects at VC++ 2015

Changing

# if PHP_WIN32

to

# ifndef PHP_WIN32

at 326 line in php.h will solve the problem.

My SDK and binary tools are the latest from GitHub and from the SDK Binary Tools archive were tested.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-04-10 15:54 UTC] maggus dot staab at googlemail dot com
this was fixed today in the git repos with

https://github.com/php/php-src/commit/d2923ec1e5457e173f29bdd7f778346c39c952dd
(and other commits)
 [2017-04-10 16:18 UTC] tpunt@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: laruence
 [2017-04-10 16:21 UTC] acuna dot personal at gmail dot com
Ah yes, it was mine too. Thanks a lot!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 13 01:01:30 2024 UTC