Bug #74637 [NEW]: Php 7 not giving line number error
| From: | arizsumagui at gmail dot com | Date: | Tue, 23 May 2017 11:47:36 +0000 |
| Subject: | Bug #74637 [NEW]: Php 7 not giving line number error | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-209234@lists.php.net to get a copy of this message | ||
From: arizsumagui at gmail dot com
Operating system: Windows Server 2012
PHP version: 7.1.5
Package: *General Issues
Bug Type: Bug
Bug description:Php 7 not giving line number error
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";
}
?>
--
Edit bug report at https://bugs.php.net/bug.php?id=74637&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74637&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74637&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74637&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=74637&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=74637&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=74637&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=74637&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=74637&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=74637&r=support
Expected behavior: https://bugs.php.net/fix.php?id=74637&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=74637&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=74637&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=74637&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74637&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=74637&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=74637&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=74637&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=74637&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=74637&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=74637&r=mysqlcfg