php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15732 gmp_init fails to create gmp resource
Submitted: 2002-02-26 10:35 UTC Modified: 2002-05-09 00:00 UTC
From: joho at webbplatsen dot se Assigned:
Status: No Feedback Package: *Math Functions
PHP Version: 4.1.1 OS: Linux 2.4
Private report: No CVE-ID: None
 [2002-02-26 10:35 UTC] joho at webbplatsen dot se
I cannot get gmp_init() to return a valid resource when used as follows:

$foodoo = md5 ("1234");
$gmpres = gmp_init ("0x" . $foodoo);

This is with GMP 4.x (I just downloaded the latest source and re-built it and PHP).

I have reported this for PHP 4.1.0 as well. But that bug was apparently removed/closed due to insufficient feedback.
I cannot duplicate this bug in PHP 4.0.6.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-26 11:18 UTC] sander@php.net
Works fine for me (using 3.x).
Does it give a warning?
What exactly does it return? (use var_dump to find out).
 [2002-05-09 00:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC