php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74637 Php 7 not giving line number error
Submitted: 2017-05-23 11:47 UTC Modified: 2017-05-23 11:49 UTC
From: arizsumagui at gmail dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 7.1.5 OS: Windows Server 2012
Private report: No CVE-ID: None
 [2017-05-23 11:47 UTC] arizsumagui at gmail dot com
Description:
------------
Good day PHP Developers,


Please see below scenario for my bug report.

1. I'am Trying to make a sample program pertaining to LDAP.
2. I run the php script to my other workstation running PHP 5.3 and shows me an error.
3. I run the same php script to my other workstation running PHP 7.1.5, but instead of showing me the error, It shows http error 500.
4. I debug the script using PHP 5.3 and it works fine.
5. I run the debugged script to PHP 7.1.5 and it works.

Conclusion: PHP 7 error reporting not yet accurate.

Below is the link for the actual screenshot for the issue.

https://cdn.pbrd.co/images/9IDVNZIjn.jpg 

I hope it helps,

And thank you very much for your unending support to our fellow programmers.

Thank You!

Test script:
---------------
<?php
$dn = "cn=read-only-admin,dc=example,dc=com";
$password= "password";

$connection = ldap_connect("ldap.forumsys.com");
ldap_set_option($connection, LDAP_OPT_PROTOCOL_VERSION, 3);
if(ldap_bind($connection,$dn,$password)){
	echo "Hello World";
}else{
	echo "Bye World";
}
?>  


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-05-23 11:49 UTC] requinix@php.net
-Status: Open +Status: Not a bug
 [2017-05-23 11:49 UTC] requinix@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

Turn on the display_errors setting.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 23:01:29 2024 UTC