|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2017-04-09 11:47 UTC] anon dot amish at gmail dot com
Description:
------------
Trying to compile the code gives lots of compilation errors
Some errors:
/home/devel/AUR/php-pam/src/pam-1.0.3/pam.c: In function ‘zif_pam_auth’:
/home/devel/AUR/php-pam/src/pam-1.0.3/pam.c:251:36: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2
ZVAL_STRING(status, error_msg, 0);
^
...
/home/devel/AUR/php-pam/src/pam-1.0.3/pam.c:256:6: error: too many arguments to function ‘zend_hash_find’
if (zend_hash_find(&EG(symbol_table), "_SERVER", sizeof("_SERVER"), (void **)&server) == SUCCESS && Z_TYPE_PP(server) == IS_ARRAY) {
Expected result:
----------------
Source should compile successfully
Actual result:
--------------
Compilation fails
Patcheszend.patch (last revision 2017-04-09 11:47 UTC by anon dot amish at gmail dot com)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 17:00:01 2025 UTC |
Patch I uploaded seems to be working correctly. However, running small command like this, causes coredump php -r "pam_auth('someuser','somepassword');" coredump does not seem to be related to my patch as it happens before code reaches any of my changes (in pam_start) But same command works if I disable optimization with CFLAGS -O0 . Do not know how disabling optimization solves the issue? Hope project maintainer can figure it out as I could not.