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

PHP Fatal error: Uncaught Error: Call to undefined function curl_init() after Sending POST request #106

Open
drus519 opened this issue Apr 23, 2024 · 1 comment

Comments

@drus519
Copy link

drus519 commented Apr 23, 2024

Have next log when trying to bind account in developer settings:

[2024-04-24] [01:03:51] [INFO] - ************************************
[2024-04-24] [01:03:51] [INFO] - * Xiaomi HyperOS BootLoader Bypass *
[2024-04-24] [01:03:51] [INFO] - * By NekoYuzu          Version 1.0 *
[2024-04-24] [01:03:51] [INFO] - ************************************
[2024-04-24] [01:03:51] [INFO] - GitHub: https://github.com/MlgmXyysd
[2024-04-24] [01:03:51] [INFO] - XDA: https://xdaforums.com/m/mlgmxyysd.8430637
[2024-04-24] [01:03:51] [INFO] - X (Twitter): https://x.com/realMlgmXyysd
[2024-04-24] [01:03:51] [INFO] - PayPal: https://paypal.me/MlgmXyysd
[2024-04-24] [01:03:51] [INFO] - My Blog: https://www.neko.ink/
[2024-04-24] [01:03:51] [INFO] - ************************************
[2024-04-24] [01:03:51] [INFO] - Starting ADB server...
[2024-04-24] [01:03:51] [INFO] - Processing device 9b04aa0b(device:shennong)...
[2024-04-24] [01:03:51] [INFO] - Finding BootLoader unlock bind request...
[2024-04-24] [01:03:51] [INFO] * Now you can bind account in the developer options.
[2024-04-24] [01:04:02] [INFO] - Account bind request found! Let's block it.
[2024-04-24] [01:04:02] [INFO] - Refactoring parameters...
[2024-04-24] [01:04:02] [INFO] - Sending POST request...
PHP Fatal error:  Uncaught Error: Call to undefined function curl_init() in /home/drus/MiUnlockTool/php/bypass.php:158
Stack trace:
#0 /home/drus/MiUnlockTool/php/bypass.php(199): http('https://unlock....', 'POST', 'data=%7B%22clou...', Array, true)
#1 /home/drus/MiUnlockTool/php/bypass.php(353): postApi('unlock/applyBin...', Array, Array, true)
#2 {main}
  thrown in /home/drus/MiUnlockTool/php/bypass.php on line 158

Fatal error: Uncaught Error: Call to undefined function curl_init() in /home/drus/MiUnlockTool/php/bypass.php:158
Stack trace:
#0 /home/drus/MiUnlockTool/php/bypass.php(199): http('https://unlock....', 'POST', 'data=%7B%22clou...', Array, true)
#1 /home/drus/MiUnlockTool/php/bypass.php(353): postApi('unlock/applyBin...', Array, Array, true)
#2 {main}
  thrown in /home/drus/MiUnlockTool/php/bypass.php on line 158

Tried to downgrade "Settings" app like in comment by APK but still get the errors mentioned above

@p-hao
Copy link

p-hao commented Apr 27, 2024

  1. Make sure there is a php.in file in your php install location.
  2. Create a php file with content:
<?php
 phpinfo();
?>
  1. Run the php file and then copy the result to your text edit
  2. Search Loaded Configuration File to Check if any config document( php.ini) is loaded. The correct result may like Loaded Configuration File => C:\php-8.3.6-Win32-vs16-x86\php.ini
  3. Search openssl, the correct result may like OpenSSL support => enabled , if its disabled, delete ; before extension=openssl in php.inifile

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

No branches or pull requests

2 participants