From: Operating system: Windows Server 2008/Windows 7 PHP version: 5.3.7 Package: Apache2 related Bug Type: Bug Bug description:Crash when calling openssl_sign under mod_php
Description: ------------ Attempting to use openssl_sign() when running under mod_php causes a crash. The test script works without problem when run from the command line. Tested with the Apache Lounge build of Apache 2.2.19 (latest) Test script: --------------- <?php //non-confidential test key $key = <<<ENDKEY -----BEGIN RSA PRIVATE KEY----- MIIEowIBAAKCAQEAxAa4FfgtluQBKZvSx5syCvM0i9AKyWk++zCPjK8dInGxd2SE jn6p+OKLzhu0rZfIKolsy8oIbyrCD+6Itc2jT7pFdrErlPhm4KzMhcqoPxuPiLTe fz9KfCYdzw/AR9Me685Iw2ehFzpPJ80n+YqeESttzyCEmT2usRz1jzECv6XrRDSj bpJ5rYo+nxLCC40M1Bv5dulKaHixvmF5LuUhLGr9TQcNmJl4WMdLKBt8ytu+HxoU k72c1mqwhga6K0gR4u3ZJ2qCf0CvhZHpv/3NPnHrxE729kV3UADun/ZlvHL0eSro vjXsdGyHzs6cKlWEBVpttBpYusvbCq2Kga/ADQIDAQABAoIBABzHt8NR+q+KrjkD rcCson5FEtPsKYlEsICEsq6/DxH9i0ayNVwOcLof2NLb8n0CKdtE7fpFoVNg/bkF FoFKvc141bYFcRagGcqm1ChYhrctPredhoU8L51moz3BXEOvVXzdfoVh857Las+3 KUVT+r0emTKt3Yn6KmnKjKsHURX97mqv8RWgXi0EERw1PoJtk57CIW/hRF9nYHow X1wwiqyxDKUmQ/xSjwSqebydnn19i1oYpc3CzbYEkbvGRmAFKNu58IQg+s8NtKhi YT5F62WXSVIj8TuLal6DZzLAGJVynBm49cV6cygqx94LKRA7N+LFFufL1oD2xsSA UioN+GkCgYEA5zsQWSYeUsGYGDSsfjV6/szB0ai0pRlrpM5UUhxAXlETw0niY3FP bh0Gh7aitOTlSEEfgpZFr0MgnZR/wXjcongvl5kD9uXjjARLSgQbjWryI4kelIdF v7cA+QXCSLd79erLkYAyTtzEMXbP3/IO6wQ3Vp3uu8z4LGyyu8apunMCgYEA2QZC QRbE02VrybbNNb5xP6qBQrrspN2BKTRaKViQ4+vllbCxzeVYh/B46tgG/EgwprmH bGl4r+GpiraRnBntnsBkbcXp2JhW0HCKNluliz1fI6njZ4CYOStWVELnBxvCwLc1 5w+bn6a30iULXr5caUYt9DWm17TNrSV67EC9e38CgYEAz416rSrECTBwnzmYo2jJ 0DBmwRSXoaJhtvrlQRbOyFoqTR7isLQiwgoXtHXBMnJLREIAUK0mO50bh5al3jno gYUz4vWcU2AikanBEt0BBj06v57y7gtGFkHkA6Khs7fO8vwgYagagCM1j9i/2pph vZ55Naxpf/UJxoaDIH3AF/UCgYBVmuVpfUy4QipJT+UUTQGo5l3Eb61GvuTi1va1 lmzYqsVNzXvlRpEsVgusPvhKbUNbkJU9i0ECx5Wz1J4NICEd3LAAqO+78yNTZwDt virHiLbNf4bm3c+txU1xQU6V/DpPADWv5fUx/XZG2zvn7FjRYdBgowUj0vrKUJ1z MXpMiwKBgHVeGMRFC/gJiehYYuCZgPC5/OuysDdstrQ6pExVEEpx3vb400St9JMN ZtFwwmOpcuYN6F2hmdr9EaxBBqCvbF+eBucj3MWYtaaI1bT4WtfveJYzz28CpNp3 /HvIuBnyZHHkGiXGcYKR06oxHsLOSzbeztTNw+NMuAowlBLdENjX -----END RSA PRIVATE KEY----- ENDKEY; openssl_sign('foo', $signature, $key); echo base64_encode($signature); Expected result: ---------------- Running the test script should output 1-2 lines of base64. Actual result: -------------- Apache process terminates, no output is sent to browser. The Apache error log contains the message: "Parent: child process exited with status 255 -- Restarting." PHP's error log says nothing. -- Edit bug report at https://bugs.php.net/bug.php?id=55470&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55470&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55470&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55470&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=55470&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55470&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=55470&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=55470&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=55470&r=needscript Try newer version: https://bugs.php.net/fix.php?id=55470&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=55470&r=support Expected behavior: https://bugs.php.net/fix.php?id=55470&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=55470&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=55470&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=55470&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55470&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=55470&r=dst IIS Stability: https://bugs.php.net/fix.php?id=55470&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=55470&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=55470&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=55470&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=55470&r=mysqlcfg