Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

globals use char error #1035

Closed
widuu opened this issue Jul 19, 2015 · 2 comments
Closed

globals use char error #1035

widuu opened this issue Jul 19, 2015 · 2 comments
Assignees
Labels

Comments

@widuu
Copy link

widuu commented Jul 19, 2015

When I added a globals type of char to the wrong

config.json

"microdb_dsn": {
            "type": "char",
            "default": "",
            "ini-entry": {
                "name": "microdb.dsn",
                "scope": "PHP_INI_ALL"
            }
        }

Compiled c file

microdb_globals->microdb_dsn = ''";

So there is an error ! And comfile-errors.log

/Users/widuu/git/microdb/ext/microdb.c:102:33: warning: empty character constant [-Winvalid-pp-token]
        microdb_globals->microdb_dsn = ''";
                                       ^
/Users/widuu/git/microdb/ext/microdb.c:102:33: error: expected expression
/Users/widuu/git/microdb/ext/microdb.c:102:35: warning: missing terminating '"' character [-Winvalid-pp-token]
        microdb_globals->microdb_dsn = ''";
                                         ^
2 warnings and 1 error generated.
make: *** [microdb.lo] Error 1
make: *** Waiting for unfinished jobs....
/Users/widuu/git/microdb/ext/microdb.c:102:33: warning: empty character constant [-Winvalid-pp-token]
        microdb_globals->microdb_dsn = ''";
                                       ^
/Users/widuu/git/microdb/ext/microdb.c:102:33: error: expected expression
/Users/widuu/git/microdb/ext/microdb.c:102:35: warning: missing terminating '"' character [-Winvalid-pp-token]
        microdb_globals->microdb_dsn = ''";
                                         ^
2 warnings and 1 error generated.
make: *** [microdb.lo] Error 1

@sergeyklay sergeyklay added the bug label Nov 14, 2019
@Jeckerson Jeckerson added this to the 0.13.x milestone Apr 14, 2021
@Jeckerson Jeckerson modified the milestones: 0.13.x, 0.14.x Sep 12, 2021
@Jeckerson Jeckerson modified the milestones: 0.14.x, Backlog Oct 3, 2021
@Jeckerson
Copy link
Member

Related #2280

@Jeckerson
Copy link
Member

Use string type instead. Available since version 0.15.1.
Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants