the-kba-team / php-pam Goto Github PK
View Code? Open in Web Editor NEWPHP PAM module for PHP 7.x
License: Other
PHP PAM module for PHP 7.x
License: Other
zend_hash_str_find() could easily be replaced by zend_hash_str_find() instead of multi-line code.
See suggested code changes here:
156fa9f#r30841135
When i was use this modul, I have an error: "Fatal error: Uncaught Error: Call to undefined function pam_auth()". Thank you.
/var/www/html/a.php:
<?php
pam_auth("deneme","1")
?>
/etc/php/7.0/apache2/php.ini: [ADDED]
pam.servicename = "php";
/etc/pam.d/php: [CREATED]
auth sufficient /lib/security/pam_pwdb.so shadow nodelay
account sufficient /lib/security/pam_pwdb.so
Apache Log:
[Mon Nov 05 10:34:29.597243 2018] [:error] [pid 1392] [client 10.67.100.1:48860] PHP Fatal error: Uncaught Error: Call to undefined function pam_auth() in /var/www/html/a.php:5\nStack trace:\n#0 {main}\n thrown in /var/www/html/a.php on line 5
There is an abrupt return of function in pam_chpass() without it doing anything.
Please fix it.
Thank you.
Line 322 in 0d74441
According to phpng-upgrading the diff should look like this:
- ZVAL_STRING(zv, str, 0);
+ ZVAL_STRING(zv, str);
+ efree(str);
In our code efree()
is missing.
Thx to @amishxda for reporting this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.