From: fred at mycommlog dot com Operating system: Win XP Home PHP version: 5.1.2 PHP Bug Type: Class/Object related Bug description: undefined function openssl_pkey_new()
Description: ------------ Trying to retrofit XP home with features missing/not included excet in Pro. Using Apache 2.0 with mod_ssl and mod_net as well as the mod_php included with the php 5.12 release. Docs say I must recompile to get ssl support in php while a note on the same page suggests including a dll from the ext/ direcory. I have modified php.ini to include the extension lib but still get the error. Is there a way to enable ssl support in php without recompiling on windows? It is fairly unfeasible for me to use gpp/gcc for windows at this time. I need a simpler solution. Reproduce code: --------------- print "<b>Generating new key...</b><br/>"; $privkey = openssl_pkey_new(); while (($error = openssl_error_string()) !== false) { echo $error . "<br/>\n"; $errorCount++; } Expected result: ---------------- this code should generate a 128 bit private key Actual result: -------------- Fatal error: Call to undefined function openssl_pkey_new() in C:\inetpub\wwwroot\php-ca\modules\setup\create.php on line 39 -- Edit bug report at http://bugs.php.net/?id=36932&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36932&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36932&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36932&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36932&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36932&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36932&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=36932&r=needscript Try newer version: http://bugs.php.net/fix.php?id=36932&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36932&r=support Expected behavior: http://bugs.php.net/fix.php?id=36932&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36932&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36932&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36932&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36932&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36932&r=dst IIS Stability: http://bugs.php.net/fix.php?id=36932&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36932&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36932&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36932&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=36932&r=mysqlcfg