php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69030 Undefined constant
Submitted: 2015-02-11 15:25 UTC Modified: 2017-07-22 21:36 UTC
From: lserni at gmail dot com Assigned: kalle (profile)
Status: Closed Package: svn (PECL)
PHP Version: 5.6.5 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: lserni at gmail dot com
New email:
PHP Version: OS:

 

 [2015-02-11 15:25 UTC] lserni at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.svn-status
---

svn extension version 	1.0.2 (latest)

The constant SVN_IGNORE_EXTERNALS is not defined.

The line:

	REGISTER_LONG_CONSTANT("SVN_IGNORE_EXTERNALS", SVN_IGNORE_EXTERNALS, CONST_CS|CONST_PERSISTENT);   /* --ignore-externals */

is missing from svn.c at line 622.


Test script:
---------------
echo SVN_SHOW_UPDATES + SVN_IGNORE_EXTERNALS;


Expected result:
----------------
160

Actual result:
--------------
Notice: Use of undefined constant SVN_IGNORE_EXTERNALS - assumed 'SVN_IGNORE_EXTERNALS' in - on line 2

32

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-07-22 21:36 UTC] kalle@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: kalle
 [2017-07-22 21:36 UTC] kalle@php.net
Both of these constants are available as class constants:

Svn::IGNORE_EXTERNALS
Svn::SHOW_UPDATES

And I can see in the SVN that its also available as those constants, not sure if that means they are apart of the 1.0.3 release of SVN but this bug has been fixed at least :)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 09:01:30 2024 UTC