Heim  >  Artikel  >  Backend-Entwicklung  >  openssl_get_publickey() 的运行结果在php7和php5.6上不一样????

openssl_get_publickey() 的运行结果在php7和php5.6上不一样????

不言
不言Original
2018-05-26 09:24:002784Durchsuche


hi everyone,

today i meet a strange problem while the function openssl_get_publickey()  runs well in php 7 while report an error in php5. 6.16 and php5.5.12

here is the test code:
fb90d3fbea553976bbcb9ea8b235bf3b

while in php7.0.0  the result is normal and correct  here is the output
{

D:\wamp64\www\php\index.php(50) : eval()'d code:24:resource(4, OpenSSL key)

}

but not the same result in php 5.6.16 and php 5.5.12 here is the output
{

D:\wamp64\www\php\index.php(50) : eval()'d code:24:boolean false

}

so can you help me  with the problem???

回复内容:

hi everyone,

today i meet a strange problem while the function openssl_get_publickey()  runs well in php 7 while report an error in php5. 6.16 and php5.5.12

here is the test code:
fb90d3fbea553976bbcb9ea8b235bf3b

while in php7.0.0  the result is normal and correct  here is the output
{

D:\wamp64\www\php\index.php(50) : eval()'d code:24:resource(4, OpenSSL key)

}

but not the same result in php 5.6.16 and php 5.5.12 here is the output
{

D:\wamp64\www\php\index.php(50) : eval()'d code:24:boolean false

}

so can you help me  with the problem???

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn