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
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: 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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Sat Apr 19 11:01:27 2025 UTC